Results 1 to 5 of 5

Thread: Autohide Dockable Toolbar

  1. #1
    Join Date
    Jan 2013
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Autohide Dockable Toolbar

    I need to create QT GUI which has dockable toolbar like in Visual Studio or auto hide taskbar in Windows OS.

    It will be basically a dockable toolbar with some floating bitmaps. It's like the bottom bar in windows with the start button. Normally it's docked, meaning all the other windows are smaller than full screen and make room for the dock. But you can also make it auto-hide, in which case all the windows are full-screen and go to the bottom of the screen, but when you move your mouse over the bottom edge, then it pops up on top of the existing windows. This app I need will work the same way, it will have 3 modes: 1) free-floating popup, like a normal window. 2) docked toolbar that stays locked at the top, left or right of the screen and the desktop and all other windows are reduced to fit within the dock, and 3) auto hide where it's on the top, left, or right of the screen but hidden until you move your mouse over the edge and then it
    appears.
    can u tell me if QT development environment can help me for this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Autohide Dockable Toolbar

    Sure, I don't see why not. It all depends what you really want. The most basic approach you can take is to use QDockWidget. A more complicated one would involve a custom widget for the dock and a custom layout class, similar to what QMainWindow has (but collapsible).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2013
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Autohide Dockable Toolbar

    Hi Wysota,

    Thanks for reply. I have toolbar which has arrow button on which user can click to see all button. For e.g., please check the snapshot here as attachment.

    1. Before.jpg -> in this image, there is arrow button just below all menu button which is show in this image with hightlighted circleBefore.jpg

    2. After.jpg -> after the click the arrow button which display the toolbar buttons which is shown in this image with highlighted image.After.jpg

    Can you please tell me some ideas to implement this design. which qt class should be use like QMainWindow or QDockWidget or QToolBar etc..

    -Ajit

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Autohide Dockable Toolbar

    Quote Originally Posted by ajit.gupta123 View Post
    which qt class should be use like QMainWindow or QDockWidget or QToolBar etc..
    Most probably all of these you mentioned. QDockWidget would be optional though.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2013
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Autohide Dockable Toolbar

    I used the QDockWidget to implement this design same as in follows:
    http://qt-project.org/forums/viewthread/9804

    But it's not working as per our design.

    Can you please tell me how can add auto hide toolbar/window functionality to this.

    Thanks,
    Ajit

Similar Threads

  1. Dockable Tabs
    By lucastonon in forum Newbie
    Replies: 2
    Last Post: 23rd September 2011, 07:54
  2. Replies: 2
    Last Post: 6th April 2011, 13:31
  3. Implementing MenuBar AutoHide function
    By viking in forum Qt Programming
    Replies: 31
    Last Post: 1st April 2011, 20:17
  4. Using Dockable Windows?
    By CrimsonGT in forum Newbie
    Replies: 0
    Last Post: 24th November 2009, 23:08
  5. Dockable windows
    By blaylockr in forum Qt Tools
    Replies: 6
    Last Post: 24th August 2008, 06:06

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.