Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI/Toast中有异常输出 #2

Open
WindSnowLi opened this issue Feb 21, 2023 · 0 comments
Open

UI/Toast中有异常输出 #2

WindSnowLi opened this issue Feb 21, 2023 · 0 comments

Comments

@WindSnowLi
Copy link

UI/Toast中的

Toast::paintEvent(QPaintEvent *event)

使用QPainter paint(this);的同时再使用

paint.begin(this);
paint.end();

会重复包含QPainter paint(this);,运行时会有异常输出QPainter::begin: Painter already active
可以尝试下删掉

paint.begin(this);
paint.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant