Results 1 to 9 of 9

Thread: QDialog: show() and exec() together in constructor?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDialog: show() and exec() together in constructor?

    processEvents() processes all events pending. The problem widgets are not painted is because you made the processor very busy. Instead use slots that'll get triggered every 100ms or so - the task will do its job slower, but the system stability will be sustained.

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog: show() and exec() together in constructor?

    I will use the solution with the QTimer, it gives better results than using qApp->processEvents();

    Thanks for your help.

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
  •  
Qt is a trademark of The Qt Company.