Results 1 to 4 of 4

Thread: setting widget as modal, disables button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting widget as modal, disables button

    yes, I am using this under windows.

  2. #2
    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: setting widget as modal, disables button

    And if you rem the window modality line then everything works as expected? It could be some kind of bug... Why don't you use a dialog instead of a widget? If you already have a widget, you can always wrap it into a dialog:
    Qt Code:
    1. QDialog dlg;
    2. MyWidget *myWidget = new MyWidget;
    3. l->addWidget(myWidget);
    4. dlg.setLayout(l);
    5. dlg.exec();
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 4
    Last Post: 23rd November 2006, 05:24

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.