Results 1 to 2 of 2

Thread: how to make the title left-aligned? It is in the middle

  1. #1
    Join Date
    Jul 2015
    Posts
    26
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default how to make the title left-aligned? It is in the middle

    The previous QT version has left-aligned title on QMainWindow.
    I want to keep it. Now it is in the middle. How to change it.
    I checked the API and could not find any function to set it.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to make the title left-aligned? It is in the middle

    The window decoration is usually either done by the windowing system, in which case the application does not control the alignment of the text, or it is handled by the Qt platform adapter, in which case it should be doing what the rest of the windows on that platform are doing.

    Cheers,
    _

Similar Threads

  1. QTabWidget tab title left/right clearance
    By fady.seif in forum Qt Programming
    Replies: 3
    Last Post: 2nd August 2012, 14:53
  2. how to set title on the top-left corner of QFrame?
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2011, 04:58
  3. Icon and Text left aligned on QPushbutton
    By vaibhav in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2011, 12:03
  4. Replies: 0
    Last Post: 6th September 2009, 21:58
  5. QStyle : how to make the QMenu display in middle?
    By nish in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 27th November 2008, 10:39

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.