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

Remove font-based QScrollArea sizeHint limit

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.6.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      QScrollArea::sizeHint uses QSize::boundedTo to limit the maximum size hint that it will return.

      The upper bounds for the sizeHint are determined by the line height of the font associated with the widget, however this value has no real meaning for non-textual widgets. E.g., a QScrollArea showing an image should return a sizeHint based on the image size, not on a font which the widget is not using.

      A better upper bound might be something like the screen size.

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              refnum Dair Grant
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes