Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32954

Layouting issue in ExtensionsBrowser [Reg Qt 6.8.2 -> 6.9.0]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 17.0.0-beta2
    • All Other Issues
    • None
    • c02a31b8c (17.0)

    Description

      Note: This is reproducible with 100% screen scaling, and apparently not with 200%

      A QItemDelegate in the ExtensionManager widget holds a QWidget and renders its content using QWidget::render(). Before the rendering, it sets various texts and pixmaps of the the widget's child widgets. The child widgets are laid out by Q*Layout.
      This method used to work fine until the Qt Creator package builds switched to Qt 6.9.0. With Qt 6.9.0, the sizes of the child widgets did not update anymore after setting label texts and calling QWidget::render().

      The effect is "jumping" and cut-off of labels on the upper right of each item:

      A manual call of QLayout::invalidate of a specific child widget before rendering fixes the issue for Qt 6.9.0. However, this might be something to be looked at in Qt.

       The correct behavior should look like this:

      Attachments

        1. LayoutIssue.gif
          LayoutIssue.gif
          58 kB
        2. NoLayoutIssue.gif
          NoLayoutIssue.gif
          29 kB
        For Gerrit Dashboard: QTCREATORBUG-32954
        # Subject Branch Project Status CR V

        Activity

          People

            portale Alessandro Portale
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes