Results 1 to 4 of 4

Thread: Make frameless tool window stay on top of the application

  1. #1

    Default Make frameless tool window stay on top of the application

    Here are my initial intentions:
    1. Independent window has a customized title bar;
    2. Multiple this type windows are opened from a main window and they can be overlapped by each other freely;
    3. they stay on top of their parent window (the main window);
    4. they don't have taskbar entries;

    Now I made a combination of Qt::Tool | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint and set these windows with no parent window. The first 3 requirements are met but the 4th one isn't. And it gives me another big problem:
    If one window is closed, all the other windows disappear until the mouse is pressed on the main window.

    Does anyone can help with this problem? I have been struggling with this problem for weeks.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Make frameless tool window stay on top of the application

    I may be missing something, but wouldn't all your requirements have been solved by using MDI?

  3. #3

    Default Re: Make frameless tool window stay on top of the application

    Quote Originally Posted by Spitfire View Post
    I may be missing something, but wouldn't all your requirements have been solved by using MDI?
    I have investigated the QMdiSubWindow and I found that the QMdiSubWindow still can't have a custom title bar as I want and it also gives an normal border around the window. So I guess this class isn't my option.

  4. #4
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Make frameless tool window stay on top of the application

    Qt has no control over title bar. This i think is the realm of window-manager. You can perhaps have a frameless window in the MDI, and have the widget made in a way that it resembles your title bar at the top. May be this GPL project code can help you a bit.

Similar Threads

  1. How to make frameless widget as a window or dialog
    By ainne810329 in forum Qt Programming
    Replies: 6
    Last Post: 4th November 2011, 10:27
  2. Frameless Window Helper
    By nish in forum Qt-based Software
    Replies: 6
    Last Post: 20th February 2011, 07:28
  3. Replies: 10
    Last Post: 25th October 2010, 23:59
  4. Replies: 2
    Last Post: 10th December 2009, 07:01
  5. how to make Window+M key work for my application
    By yxmaomao in forum Qt Programming
    Replies: 4
    Last Post: 10th July 2008, 00:35

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.