Results 1 to 7 of 7

Thread: Parentless window with no taskbar entry

  1. #1
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    84
    Thanks
    5
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Parentless window with no taskbar entry

    Hello,
    I have a QMainWindow and sometimes there's a QDialog displayed. I know that if QDialog doesn't have a parent it creates a taskbar entry. Now I have the problem that I don't want QDialog to have a taskbar entry (Windows) because that QDialog should always be visible (with the onTopHint in particular) even if the QMainWindow is minimized.

    So the basic problem is that:
    - if QDialog has a QMainWindow as a parent - it doesn't have a taskbar entry but it disappears when the QMainWindow is minimized
    - but if QDialog has no parent - it doesn't disappear when the QMainWindow is minimized but it has a taskbar entry


    I don't want the QDialog to have a taskbar entry and I don't want it getting disappeared when the QMainWindow is minimized. So, am I missing something?

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Parentless window with no taskbar entry

    What taskbar you are talking about? Need a screen dump...

  3. #3
    Join Date
    Feb 2006
    Posts
    31

    Default Re: Parentless window with no taskbar entry

    In Qt3, I tried using Qt::QStyle_Splash as one of the flag in WFlag.

    It works on Qt3.

  4. #4
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    84
    Thanks
    5
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Parentless window with no taskbar entry

    Hey thanks! That works. But I also have to use Qt::CustomizeWindowHint (so the dialog has a thin frame border) and in combination wit Qt::SplashScreen it won't work (the dialog has no frame at all anymore).

    @Ini: I'm talking about the standard Microsoft Windows Taskbar at the bottom of the desktop.

  5. #5
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Parentless window with no taskbar entry

    You might find solution from the Windows libs. I, for example, use the follwing on KDE/Linux
    Qt Code:
    1. KWin::setState( winId(), NET::SkipTaskbar );
    To copy to clipboard, switch view to plain text mode 
    Last edited by yogeshm02; 13th December 2006 at 13:32. Reason: w -> W to read Windows

  6. #6
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    84
    Thanks
    5
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Parentless window with no taskbar entry

    Okay, I got it. Instead of Qt::SplashScreen I used Qt::Tool.
    Works great

  7. #7
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Parentless window with no taskbar entry

    What about the title bar, is it displayed correctly?

Similar Threads

  1. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.