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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes