Results 1 to 1 of 1

Thread: raise tabified dock widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2012
    Posts
    25
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    7

    Default raise tabified dock widget

    OSX, Qt4.7, PySide

    I've googled extensively on this but have come up empty.

    Is there a way to raise a tabified dock widget in a QMainWindow?

    I've tried raise_(), activateWindow(), show(), setWindowState(....)

    Edit: I did manage to get raise() to work, but not in the same call.
    Qt Code:
    1. def openProject(self,project_name):
    2. if self.openProjects.has_key(project_name):
    3. self.openProjects[project_name].raise_() # WORKS
    4. else:
    5. project = Project(project_name)
    6. self.openProjects[project_name] = project
    7. ...... # get last widget tabified
    8. self.mainWindow.tabifyDockWidget(previous_project, project)
    9. project.raise_() # DOES NOT WORK ??
    To copy to clipboard, switch view to plain text mode 

    I've tried signals, setFocus...not sure why it will not work subsequent to tabifying.
    Last edited by BreakBad; 15th January 2014 at 20:03.

Similar Threads

  1. Drag and Drop with tabified dock widgets
    By chezifresh in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2011, 22:40
  2. hide tab within a tabified dock widget
    By navid in forum Qt Programming
    Replies: 9
    Last Post: 7th July 2010, 17:12
  3. widget raise!
    By zgulser in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2009, 07:10
  4. Replies: 2
    Last Post: 23rd April 2008, 14:13
  5. hideEvent not propagated to tabified dock widgets
    By spud in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2007, 09:00

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.