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

tst_QGraphicsProxyWidget::createProxyForChildWidget fails with non-zero safe area margins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.2, 6.10.0 Beta4, 6.11.0 FF
    • Widgets: GraphicsView
    • None
    • 8f74b6c80 (6.10.0), 42f790220 (6.9), 4fedb6fcf (6.10), 7a272c290 (dev), 7f7848671 (6.10), 102fc06cc (6.9)

      tst_QGraphicsProxyWidget::createProxyForChildWidget fails if non-zero safe margins are reported.

      FAIL!  : tst_QGraphicsProxyWidget::createProxyForChildWidget() Compared values are not the same
         Actual   (checkboxProxy->size().toSize()): QSize(96x24)
         Expected (checkbox->size())              : QSize(96x9)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp(2880)] 

      This seems to happen because the widget used by the proxy is top level widget which has the margins used by default but it doesn't consider that it's used inside a proxy widget.

        For Gerrit Dashboard: QTBUG-140133
        # Subject Branch Project Status CR V

            vestbo Tor Arne Vestbø
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: