Results 1 to 2 of 2

Thread: Pin/Unpin Dock Widget

  1. #1
    Join Date
    Jun 2006
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Pin/Unpin Dock Widget

    Does anyone what is required to create a dock widget that allows the user to show it, then pin it open if the user so chooses, similar to the behavior of the toolbox in visual studio .Net? I have tried playing with many of the size settings to get the desired behavior to no avail. I would like the dock widget to overlap the central widget when shown (but not pinned), then have the central widget (and any other visible widgets) resize themselves if the widget is pinned. I would hope I can do this all while having the window docked rather than floating, but I don't know if it's possible to have widget overlap when docked. Thanks in advance for any help.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Pin/Unpin Dock Widget

    I think this might be impossible without major customization. QMainWindow has it's own private layout which handles all main window specific components, including dock widgets. You might have to rewrite a few components like dock widget and main window (layout). For the hide/show scrolling effect, take a look at src/gui/widgets/effects.* (another private class of Qt).

    I wouldn't mind having these features either.. I'm not sure if this is very common component in Windows as the only application I've seen it in is VS.net. But still, maybe one could even make a suggestion for TT to implement something like this in the future versions of Qt.
    J-P Nurmi

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

    charlesD (21st June 2006)

Similar Threads

  1. minimize child widget
    By sreedhar in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2006, 13:02
  2. Replies: 4
    Last Post: 24th March 2006, 23:50
  3. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 14:25
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 15:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 21: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.