Results 1 to 7 of 7

Thread: Basic Qt app doesn't redraw window properly (linux/debian)

  1. #1
    Join Date
    Jan 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Basic Qt app doesn't redraw window properly (linux/debian)

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    Quote Originally Posted by illuminatedwax View Post
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    I compiled and ran this tutorial:

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

    and the results were replecated exactly.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    How did you install Qt?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    Through the debian dev packages.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Jan 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Basic Qt app doesn't redraw window properly (linux/debian)

    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/...?content=57968

    It works both in binary and when I compile it.

Similar Threads

  1. Delegate doesn't paint properly
    By woodtluk in forum Qt Programming
    Replies: 4
    Last Post: 11th August 2010, 11:43
  2. QtIOCompressor fix for Mac (Debian Linux?)
    By qdm in forum Qt Programming
    Replies: 0
    Last Post: 23rd June 2010, 02:17
  3. Basic QMainWindow doesn't show menubar
    By Jeffb in forum Newbie
    Replies: 3
    Last Post: 14th April 2010, 13:52
  4. Look and Feel on Debian Linux
    By Krish_ng in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2007, 09:11
  5. QT4 minimum requirements Debian GNU/Linux Sarge
    By Everall in forum Installation and Deployment
    Replies: 10
    Last Post: 21st February 2006, 12:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.