Results 1 to 3 of 3

Thread: Multiple QGrphicsViews and scenes cause app to freeze.

  1. #1
    Join Date
    Jun 2010
    Posts
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default Multiple QGrphicsViews and scenes cause app to freeze.

    I'm using a mdi area to view dialog boxes most of which have its own graphics view and scene, but when two widgets with a graphics view and a scene are shown the application freezes. So I pressed the pause button and it seems that its hanging somewhere in QWidget::show(). The funny thing is that it only does this when more the one graphics view is visible. Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple QGrphicsViews and scenes cause app to freeze.

    Please provide some minimal code that demonstrates the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2010
    Posts
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Multiple QGrphicsViews and scenes cause app to freeze.

    I fixed it. calling setBackgroundBrush in the drawForeground method setting a new QBrush each time (which I shouldn't have been doing).

Similar Threads

  1. Replies: 4
    Last Post: 3rd June 2011, 10:35
  2. Trying to use single pixmap in two Scenes.
    By spawn9997 in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2009, 21:23
  3. Thread,GUI Freeze
    By darshan in forum Qt Programming
    Replies: 2
    Last Post: 25th February 2009, 20:17
  4. QLayout on scenes
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 18th November 2008, 17:22
  5. adding QGraphicsItem to multiple scenes
    By forrestfsu in forum Qt Programming
    Replies: 7
    Last Post: 6th November 2006, 14:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.