Results 1 to 9 of 9

Thread: QtoolBar like movable feature for a widget inside Central Widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    delhi India
    Posts
    56
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default QtoolBar like movable feature for a widget inside Central Widget

    Hi ,
    My requirement is that i need movable widget(toolbar like ) inside central widget of QMainwindow .
    It should have the ability to be moved atleast to the left most vertical side and right most vertical side of Central widget.

    Attached is the image to get better view of the above requirement.

    I tried following approaches.

    1.Create Dockwidget and add this Dockwidget to layout that is set to central widget.
    But with this approch it dosen't give the look like toolBar as Dockwidget has its own titleBar which i cant get rid of it.

    2.Add the toolbar widget with other widgets to the layout that is set to central widget.
    But with this i cant move the toolbar widget added to the layout.

    3.Create second QMainwindow which can be added to the central widget of the Outer QMainwindow.
    This is the Hack but it solves my purpose.But i dont know how dangerous it would be to maintain in future.
    Is it a good idea of having Qmainwindow inside another Qmainwindow ?

    Please help on this.Any help would be appreciated.

    Thanks.
    Attached Images Attached Images

Similar Threads

  1. QToolBar in Win Mobile is not movable?
    By feverzsj in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 26th May 2011, 08:47
  2. Qt Designer About central widget in Qt Designer
    By lrjdragon in forum Qt Tools
    Replies: 2
    Last Post: 3rd April 2010, 16:11
  3. QDockWidgets without central widget
    By JoeMerchant in forum Qt Programming
    Replies: 17
    Last Post: 8th August 2007, 14:52
  4. user resizable and movable QLabel widget
    By hvengel in forum Qt Programming
    Replies: 8
    Last Post: 12th April 2007, 00:01
  5. Central Widget of QMainWindow
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2006, 18:32

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.