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

QTabWidget wrong minimum size

    XMLWordPrintable

Details

    • Windows

    Description

      QTabWidget calculates its size wrong (at least in win xp style). QWindowsXPStyle::sizeFromContents just returns hardcoded "contentsSize + QSize(6, 6)" so it doesn't take into account pane border width set in stylesheet.

      so if you have set following stylesheet "QTabWidget::pane { border: 0px; }" and have widget in tab with minimum height and width of 200px you'll see that you cannot shrink window so widget will become less than 206px. and even without any stylesheet you'll have this widget at least 201px height (width is ok here). this can be easily reproduced even in preview mode of qt designer.

      can be workarounded by setting margin/border/padding for pane so summ of their width will be equal 3 (e.g. 1px border and 2px padding).

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            artur.kuznetcov Artur Kuznetcov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes