Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83455

Add method to set QTabBar Tab alignment

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: GUI: Look'n'Feel
    • Labels:
      None
    • Platform/s:
      All

      Description

      Qt stylesheets allow complete customization of the widgets including QTabBar. In some cases Tabs don't look like traditional tabs any more, which is the case with our application.

      However, the QTabBar alignment is limited to native tab alignment i.e. Left on Windows and Middle on macOS. While its understandable to have that limitation when Native UI is being rendered, but in cases of custom styled QTabBar its a huge limitation. 

      Proposed method:
      void QTabBar::setAlignment(Qt::Alignment alignment);

      Calling this method forces specific tab alignment i.e. Left, Center, Right.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            taytoo atif Goheer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes