Results 1 to 4 of 4

Thread: QDialog not closing properly

  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default QDialog not closing properly

    I have a dialog popup for the user to select some options, if the user clicks OK, the accept signal is caught.
    When the signal is caught, a new thread is created to handle some computations, the program then continuous to run through a progress bar.
    The problem is that a gray area is left behind on the screen after the dialog closed (accepted).

    I have attached 2 screenshots showing the problem.
    screen0 – die dialog before OK is clicked
    screen1 – right after OK was clicked

    Can anyone help?




  2. #2
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDialog not closing properly

    What happens if you do a rePaint() on the dialog?

  3. #3
    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: QDialog not closing properly

    You are somewhere preventing the events from being processed. Most likely your "thread" is not really a thread and it blocks the main event loop.
    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.


  4. #4
    Join Date
    Sep 2010
    Posts
    4
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog not closing properly

    It turned out to be my graphic card drivers. Apparently this happens often with faulty graphic cards (or drivers). But thanks anyway for your input.

Similar Threads

  1. [OT] closing of qt bugs
    By luf in forum Qt Programming
    Replies: 0
    Last Post: 26th July 2010, 13:55
  2. closing a Qdialog called from a Qdialog
    By OverTheOCean in forum Qt Programming
    Replies: 3
    Last Post: 28th September 2009, 08:02
  3. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 17:04
  4. closing a widget
    By steg90 in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2007, 09:57
  5. Closing a QDialog
    By eu.x in forum Newbie
    Replies: 2
    Last Post: 12th March 2007, 08:33

Tags for this Thread

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.