Results 1 to 2 of 2

Thread: How to Verticalyl right align Title Bar QDockWidget

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

    Default How to Verticalyl right align Title Bar QDockWidget

    Hi,
    I want to align the title bar of QDockwidget vertically right .
    QT aligns it vertically to left.
    How can i vertically right align it .
    Thanks,

  2. #2
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: How to Verticalyl right align Title Bar QDockWidget

    Qt Code:
    1. dockWidget->titleBarWidget()->setLayoutDirection ( Qt::RightToLeft );
    To copy to clipboard, switch view to plain text mode 

    Edit.

    I din't get what you meant in your question. Now, I am not sure if you can change it, in the documentation it is stated that the title will be placed on the left side. You can try to set
    Qt Code:
    1. dockWidget->setLayoutDirection ( Qt::RightToLeft )
    To copy to clipboard, switch view to plain text mode 
    , but I am not sure if that is going to do anything good...
    Last edited by Rachol; 29th June 2011 at 12:59.
    Don't write a post just to thank someone, use "Thanks" button.

Similar Threads

  1. QDockWidget-title
    By moowy in forum Qt Programming
    Replies: 18
    Last Post: 23rd April 2014, 20:13
  2. Combined Title and Tab for QDockWidget
    By chaoticbob in forum Qt Programming
    Replies: 0
    Last Post: 25th May 2010, 19:16
  3. QDockWidget::title is painting over other widgets with QSS
    By edisongustavo in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2010, 22:44
  4. contextmenu in QDockWidget title
    By klipko in forum Newbie
    Replies: 4
    Last Post: 7th March 2008, 22:32
  5. No restore button in QDockWidget title bar
    By trskel in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2007, 09:59

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.