I'd try calling update() or repaint() on the widget that has the pixmap, and probably processEvents too, but I'm sure there are more elegant ways.
I'd try calling update() or repaint() on the widget that has the pixmap, and probably processEvents too, but I'm sure there are more elegant ways.
i would also suggest using layouts than setting the buttons positions manually![]()
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
Why must I call repaint, but oneStep can do the same thing without call it?
Because when you draw in execOnce(), a flag is set indicating that an update is necessary. That flag is acted upon when the main event loop is run (after your slot has finished). runAll(), though, wants to do many updates without returning from the slot between each and so needs to do more explicit repainting.
Thanks to drhex
Bookmarks