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

when use QGraphicsView::setScene to show another scene, the scene is not actived

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 4.7.0
    • 4.5.1
    • Widgets: GraphicsView
    • None
    • windows XP ,embedded linux, Qt4.5.1

    Description

      i only define one view to display different scene, when use setScene to show another scene, the scene is not actived;
      when i send a QEvent::WindowActivate to the scene, it's ok;
      just like this below:

      void MyWidget::slot_clicked1()
      {
      graphicsView_1->setScene( scene_1 );
      QEvent e( QEvent::WindowActivate );
      QApplication::sendEvent( scene_1, &e );
      }

      void MyWidget::slot_clicked2()
      {
      graphicsView_1->setScene( scene_2 );
      QEvent e( QEvent::WindowActivate );
      QApplication::sendEvent( scene_2, &e );
      }

      Attachments

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

        Activity

          People

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            xuyaojun xuyaojun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes