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

QT 6.7.1 : QGraphicsProxyWidget hangs events & rendering on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.1
    • Widgets: GraphicsView
    • None
    • Qt 6.7.1

      Android 14 (API 34), NDK r26b
      Compiled on Windows 11 with prebuilt CLang toolchain
    • Android

    Description

      On android, when I add a QGraphicsProxyWidget to a QGraphicsScene, the app just freezes. No event is dispatched and rendering hangs. The app is still responding though.

       

      At first I though it was my app fault (because it is quite big, it may have dumb bugs), but I easily managed to reproduce the bug.

       

      I tried to use a different rendering backend : no changes.

       

      Here is my test code. The entire project is in the attached documents.

      #include "testproxy.h"
      #include "ui_testproxy.h"
      #include <QGraphicsProxyWidget>
      #include <QSlider>
      
      TestProxy::TestProxy(QWidget *parent) :
          QWidget(parent),
          ui(new Ui::TestProxy)
      {
          ui->setupUi(this);
          auto* qslider = new QSlider();
          auto* prox = new QGraphicsProxyWidget();
          prox->setWidget(qslider);
          prox->setGeometry(QRectF{0, 0, 100, 500});
          auto* scene = new QGraphicsScene();
          scene->addItem(prox);
          ui->graphicsView->setScene(scene);
      }
      
      TestProxy::~TestProxy()
      {
          delete ui;
      } 

      Attachments

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

        Activity

          People

            bibr Andreas Aardal Hanssen
            mathis.d Mathis DELGADO
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes