PDA

View Full Version : Basic Qt app doesn't redraw window properly (linux/debian)



illuminatedwax
25th January 2011, 22:29
I've compiled a basic Qt app as given in this tutorial: http://zetcode.com/tutorials/qt4tutorial/introduction/ ("Testing a Small Example").

When I run it, the window shows up but Qt doesn't draw in the background. I end up with phantoms from windows behind it: http://i.imgur.com/yg79s.png

The window will draw the background correctly when I resize it -- MOST of the time. And sometimes there will be a noticeable delay between resizing and drawing in the window.

Am I missing some libraries? Is this a bug? Maybe there's something else I can look up to find a solution?

I'm running debian linux, my window manager is fluxbox, and my video card is a GeForce FX Go5200 64M.

I should note that this works perfectly well on another computer I have that's running sid as well, with a Radeon HD 3200 Graphics with the fglrx driver.

I apologize if this should be in Installation and Deployment instead.

wysota
25th January 2011, 22:46
I've compiled a basic Qt app as given in this tutorial: http://zetcode.com/tutorials/qt4tutorial/introduction/ ("Testing a Small Example").
In general if you're using a custom tutorial and something doesn't work I would advise to bother the author of the tutorial...

Try running any of the examples bundled with Qt and see if you can reproduce the faulty behaviour with them.

illuminatedwax
25th January 2011, 23:01
I compiled and ran this tutorial:

http://doc.qt.nokia.com/latest/tutorials-widgets-toplevel.html

and the results were replecated exactly.

wysota
25th January 2011, 23:26
How did you install Qt?

illuminatedwax
26th January 2011, 01:22
Through the debian dev packages.

wysota
26th January 2011, 01:33
Try running any KDE application or any binary Qt example (it's probably a separate package). See if they all contain the faulty behaviour. Also run your example with "-graphicssystem raster" and then with "-style plastique" commandline options and see if any of them fixes the problem.

illuminatedwax
26th January 2011, 21:00
OK, so there's no effect when I run it with -graphicssystem raster or -style plastique (I also tried -graphicsssystem native on a suggestion from IRC).

I tried downloading a Qt app, I chose this one: http://qt-apps.org/content/show.php/cb2bib?content=57968

It works both in binary and when I compile it.