SFML community forums
Help => Graphics => Topic started by: MegaByte on April 22, 2009, 03:42:28 am
-
Using SFML 1.4 and Qt 4.5, I compiled (MSVC 2008 SP1) and ran the example app found here: http://www.sfml-dev.org/tutorials/1.4/graphics-qt.php
It works, but I am getting a constant terrible flickering (between the Qt background and SFML canvas), such that it is entirely unusable. If I turn off the update timer (QSFMLCanvas.cpp line 81), the flickering stops (but so do the updates, of course). Has something changed in Qt that makes the example not work properly, or is the example deficient? Any ideas?
-
Something has changed, I have to update the tutorial and sample.
Someone on the french forum found a fix, if I remember correctly it was about implementing the virtual painter() function and make it return 0.
-
Yes, it looks like you have to add
virtual QPaintEngine* paintEngine() const {return 0;};
to the class.