Results 1 to 4 of 4

Thread: QDialog and switching applications

  1. #1
    Join Date
    Jan 2006
    Location
    Leiden, the Netherlands
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QDialog and switching applications

    Hello,

    I have the following Dialog:

    Qt Code:
    1. QWinWidget mainWnd(mainHwnd_);
    2. mainWnd.setWindowFlags(Qt::Window);
    3. MyDialogDialog dlg(&mainWnd); //QDialog derived class
    4. dlg.exec();
    To copy to clipboard, switch view to plain text mode 

    The following strange things occur:

    - When pressing ALT-TAB in Windows XP, my Application icon is gone. The MyDialog icon is shown instead.
    - When switching to another application and switching back, by using the taskbar will show my main window, not the modal dialog. Users think the dialog is gone and cannot use the app anymore.
    - If I want to make my application usable again, I have to activate it via ALT-TAB again. Then the dialog is on top.

    This is what I want:
    Modal dialog, always on top, whenever the application is activated and no icon changes in my ALT-TAB window.

    How can I do that?

  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: QDialog and switching applications

    What is QWinWidget?

  3. #3
    Join Date
    Jan 2006
    Location
    Leiden, the Netherlands
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDialog and switching applications

    A widget delivered by Trolltech for (at least) the commercial version of Qt. It integrates Qt with Win32 API applications.

  4. #4
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QDialog and switching applications


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.