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

When displaying a QWidget in a QGraphicsScene, it's impossible to use setWindowIcon on the QWidget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.6.3
    • Widgets: GraphicsView
    • None
    • Windows 7 64 bits.

      When creating a QWidget in a QGraphicsScene :

      QWidget *pWidget = new QWidget;
      pWidget->setWindowIcon(my_Icon); // This seems to be not working ! I can only see the Qt's icon !
      QGraphicsProxyWidget* pProxy = this->addWidget(pWidget, Qt::Window);

      When I try to change the default widget's icon, it's not working at all.

      It seems that changing the Qt::WindowFlags on the ProxyWidget has a very inconsistent behavior.

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

            Unassigned Unassigned
            andy_ch Andy Mertenat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes