Results 1 to 2 of 2

Thread: Problem with using raise function on QMainWindow

  1. #1
    Join Date
    Oct 2007
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Problem with using raise function on QMainWindow

    Hello, I have problem to bring to top main window. Here is the satiation:
    1. I have center widget and three docking widgets
    2. The problems appears when all docking widgets are floating.
    3. When I click on main window, it stays under the overlapping docking widget.

    What did I try:
    1. implement focusInEvent in main window and call raise function of the main window.
    2. call lower () of each overlapping docking widget
    3. call stackUnder of the docking widget with mainwindow as a parameter

    Nothing works. What else can I try?
    I searched the Forum and could not find info that could help me. May be I am using wrong keywords?
    Thanks in advance

  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: Problem with using raise function on QMainWindow

    The main window will never be on top of any of its dock widgets. Child windows are always on top of their parents. The only thing you can to is to "deparent" those dock widgets, but then you won't be able to dock them back.

  3. The following user says thank you to wysota for this useful post:

    yartov (15th May 2008)

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.