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

Add method to set QTabBar Tab alignment

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.14.2
    • GUI: Look'n'Feel
    • None
    • All

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            taytoo Mike Flanigan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes