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

QCombobox too narrow when device pixel ratio rounded down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0
    • None
    • Windows 10, 4k screen, native device pixel ratio of 1.5 (font size was set to 150%)
    • Windows

    Description

      QComboxbox is too narrow causing its text to be clipped on screen that has non-integer device pixel ratio that is rounded down (tested on 4K screen under Windows 10 with native device pixel ratio of 1.5). See attached code.

       

      Bug was closed as non-reproducible under Qt 6.7, but test with Qt 6.7.1 shows bug still present. (see additional screenshot) Please test using Windows with device pixel ratio of 1.5.

      Attachments

        1. QComboboxTooNarrow_Qt6.7.1.png
          QComboboxTooNarrow_Qt6.7.1.png
          0.4 kB
        2. QComboboxTooNarrow.png
          QComboboxTooNarrow.png
          9 kB
        3. QComboxboxTooNarrow.cpp
          1 kB
        4. screenshot-1.png
          screenshot-1.png
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            ev E Visser
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes