Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Titlebar Aligning Title to left or right
Qt 6.11 is out! See what's new in the release blog

Qt Titlebar Aligning Title to left or right

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardM198030
    wrote on last edited by
    #1

    Is there any way to align the title in the titlebar to left or right? Qt's default setting is centered, or maybe you can't align it to the left or right?

    Edit:
    Looked through google first, didn't find anything on this sort of topic.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mkoskim
      wrote on last edited by
      #2

      [quote author="RichardM198030" date="1320167237"]Is there any way to align the title in the titlebar to left or right? Qt's default setting is centered, or maybe you can't align it to the left or right?
      [/quote]

      I think it is up to underlaying OS and its settings? At least in Linux (X11), it is usually window manager that does those decorations. I am not sure, if this behavior can be easily changed with Qt.

      http://mkoskim.wordpress.com
      http://mkoskim.drivehq.com
      http://mkoskim.deviantart.com

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RichardM198030
        wrote on last edited by
        #3

        [quote author="mkoskim" date="1320167947"]
        [quote author="RichardM198030" date="1320167237"]Is there any way to align the title in the titlebar to left or right? Qt's default setting is centered, or maybe you can't align it to the left or right?
        [/quote]

        I think it is up to underlaying OS and its settings? At least in Linux (X11), it is usually window manager that does those decorations. I am not sure, if this behavior can be easily changed with Qt.[/quote]

        Yeah, thanks, I was kinda wondering that, and was thinking that's the possible case here..

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          The title bar is done by the OS. YOu can only change the behavior by doing platform specific things...

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RichardM198030
            wrote on last edited by
            #5

            [quote author="Gerolf" date="1320170263"]The title bar is done by the OS. YOu can only change the behavior by doing platform specific things...[/quote]

            Awesome, thanks, =). Yeah, I'm running Gentoo Linux here.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved