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

Fusion style: QFrame::StyledPanel with wrong offset in High DPI scaling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • Widgets: Styles
    • None

    Description

      It seems the Fusion style for the styled panel variant of the QFrame shape draws the frame with some offset (perhaps not pixel-aligned?).

      When running attached sample program which renders the QFrame's content rect (yellow) and frame rect (red) properties by dashed lines in an overlay, with the QFrame widget itself having a white background, being inside a blue container widget, one can see how on the right and the bottom there is space between the frame and the widget edge, while on the left and the top only half of the line is drawn (best seen in top-right or bottom-left corners):

       

      Build attached sample program with cmake . && make
      , then run QT_SCALE_FACTOR=8 ./qframeoverlay -style fusion.

      Try no factor or different styles for comparison (the overlay should be correct ).

      Attachments

        1. CMakeLists.txt
          0.2 kB
          Friedrich W. H. Kossebau
        2. main.cpp
          2 kB
          Friedrich W. H. Kossebau
        3. scalefactor8.png
          2 kB
          Friedrich W. H. Kossebau
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            kossebau Friedrich W. H. Kossebau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes