PDA

View Full Version : flicker and wierd resize problems ...



momesana
1st May 2008, 19:13
I am experimenting with transitions and came across some wierd problems.
Problems:

With Qt-4.3.x there is flicker when the widget is closed (rather deleted because of the DeleteOnClose Flag.)
Using Qt-4.4.0 there is no flicker (probably due to the use of alien widgets) but there is a wierd resize issue that doesn't come up with Qt-4.3.x. If I start an animation, then resize the widget and start the animation again, the widget jumps back to it's initial size. This doesn't happen with Qt-4.3 and also doesn't happen with Qt-4.4.0 when Keeping the widget alive and showing/hiding it instead of deleting it but I wonder why this can't be achieved with the former approach. (you can try that by commenting out the line setAttribute(Qt::WA_DeleteOnClose, true); in the code below.)
The Performance of the transition is severly affected when the widget's size becomes larger. How can I increase the performance?
Using QGLWidget instead QWidget as baseclass for the Transition class results in flicker when the widget is closed regardless of the version of Qt used. This also happens when the widget is only hidden instead of deleted (upon closing).Is the difference in behaviour between Qt-4.3 and Qt-4.4 a bug in Qt? Should I file a bug report?

Here is the code (I know it's a little large but the only interesting class is TestTransition and the rest is not really relevant):
2207

Thanks in advance
momesana

momesana
12th May 2008, 18:00
Ok, I filed a bug report for the resizing issue and it seems it's really a bug.
http://trolltech.com/developer/task-tracker/index_html?id=210960&method=entry
The performance issue was due to Xorg using EXA instead of XAA. Though EXA is supposed to replace XAA and is said to perform better, it does not do so with intel drivers. Not yet. The issue has been discussed in various forums and will be solved soon. I use Xorg 7.2 and 7.3 may already have solved the issue with EXA.