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

On Mac OS 12.5.1, corner widget in QScrollArea is not drawn correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • 6.5.0 Beta1
    • 6.4.0
    • Widgets: Styles
    • None
    • Mac OS 12.5.1 "Monterey"
      Qt 6.4.0
    • macOS
    • a43845b75a (qt/qtbase/dev)

    Description

      Hi,

      On Mac OS 12.5.1, using Qt 6.4.0, the corner widget of a QScrollArea is not drawn correctly. The pictures attached show a default QWidgets app with a QMainWindow where the constructor of the main window contains the following:

      ui->setupUi(this);
      QScrollArea * sa = new QScrollArea;
      sa->horizontalScrollBar()->setRange(0, 2000);
      sa->verticalScrollBar()->setRange(0, 2000);
      setCentralWidget(sa);
      

       

       In one picture, there is a status bar in the QMainWindow (default for the app as created by QtCreator). The corner widget is a strangely styled square. In the second, the status bar has been removed and the the corner widget is still a square "underneath" the curvature of the window. The final picture is from google chrome, showing the expected appearance. 

      added in edit - I noticed this in using QAbstractScrollArea, where it also happens, hence the direct manipulation of scrollbar ranges, which I guess is not the normal way of using QScrollArea?

      Cheers, best wishes,

      Mick

      Attachments

        1. expected_appearance.png
          expected_appearance.png
          245 kB
        2. no_status_bar-1.png
          no_status_bar-1.png
          88 kB
        3. status_bar-1.png
          status_bar-1.png
          69 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            mick2 Mick Elliot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes