×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    28

    MainWindow is not drawn after QFileDialog's desctruction

    Hi,

    I am working on an application using Nokia Qt SDK 4.2.8.

    I am drawing mainwindow and on top of that displaying QDialogs.On one of the dialogs I need to browse the current file directory. So I use QFileDialog's getexistingDirectory function to display the same.It works fine.

    But, the problem arises when on clicking either OPEN or CANCEL button on the QFileDialog ,the dialog disappears and my QDialog is displayed back again but the QMainWindow which is below the QDialog is not displayed.Instead I get a blank(white)space on the screen & on top of that my Qialog.

    Is there any way I can display the MainWindow And on top of that my QDialog as I m doing it in my application.





    Thanx

    rT

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: MainWindow is not drawn after QFileDialog's desctruction

    That sounds like a bug in Qt, although you don't say how you're displaying dialogs on top... you could try invalidating the entire main window rectangle and seeing if it correctly redraws.

Similar Threads

  1. Replies: 3
    Last Post: 2010-12-18, 12:12
  2. set Widget in the center of MainWindow.
    By mj_124949727@126.com in forum Qt
    Replies: 3
    Last Post: 2010-11-26, 23:43
  3. how to use mainwindow object in another form?
    By patel_rakesh95 in forum Qt
    Replies: 5
    Last Post: 2010-10-05, 12:44
  4. QThread and MainWindow (Qt designer)
    By darksoul_e in forum Qt
    Replies: 11
    Last Post: 2010-05-18, 14:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×