Results 1 to 2 of 2

Thread: how to align text inside a QToolBar

  1. #1
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default how to align text inside a QToolBar

    hello,

    i have added actions in order to create a QToolbar, but when i am displaying the QToolBar all the text of the actions come centered, i want a left justification. I do not see any command that let me do so.

    How do you achieve that.

    Thank you for your help.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: how to align text inside a QToolBar

    Maybe you can do this with a style sheet.
    If not, certainly with a custom style.

Similar Threads

  1. Position of qActions inside a QToolBar
    By jano_alex_es in forum Newbie
    Replies: 9
    Last Post: 23rd April 2010, 10:29
  2. Align text's in Qpainter
    By sanku in forum Qt Programming
    Replies: 8
    Last Post: 23rd April 2010, 09:29
  3. how align some buttons in QToolbar from right to left?
    By davi_all4one in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2009, 11:15
  4. Set Text inside group box
    By bismitapadhy in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2009, 08:26
  5. text inside QGraphicsEllipseItem
    By stoned in forum Qt Programming
    Replies: 3
    Last Post: 10th June 2008, 07:44

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.