Results 1 to 3 of 3

Thread: Slow performance of QGraphicsView - why?

  1. #1
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Slow performance of QGraphicsView - why?

    Hi,
    I am using the Tiled map editor as part of the project I'm working on. I have a main window with a central tab widget - the map editor is one of a few tabs.
    Tiled uses a live preview for stamping/filling tiles. On my netbook in the Tiled editor it's instantaneous but (in Release mode) in my program the live preview takes a couple of seconds to load.
    Could it be the large number of widgets on my window that's affecting performance? Or is there another factor? Or does this mean I'm doing something wrong?

    Thanks!

  2. #2
    Join Date
    Apr 2010
    Location
    Porto Alegre, RS, Brazil
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Slow performance of QGraphicsView - why?

    It's hard to tell. If I were you, I would measure the performance of each component of my code, looking for a performance leak somewhere.
    However, that's just a guess, since I don't have your code and I've never seen it running...
    Testing in a powerful computer might also help - If it get's way faster, you are probably overloading your notebook...

  3. #3
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Slow performance of QGraphicsView - why?

    Yeah, I'll try embedding it the same way into a small testing application and see what happens I suppose.

    My point is that the ordinary Tiled editor - which I'm using the QGraphicsView subclass from - works fine and fast on my netbook whereas my program doesn't ...

    Edit: Although I suppose it might help to see whether it does speed up on a faster machine ... I'll try it on my 3.4GHz quad core beast

Similar Threads

  1. Replies: 1
    Last Post: 8th August 2010, 20:04
  2. QGraphicsView performance
    By Halabund in forum Newbie
    Replies: 3
    Last Post: 17th April 2009, 10:12
  3. Zooming is too slow with QGraphicsView
    By learning_qt in forum Qt Programming
    Replies: 10
    Last Post: 4th December 2008, 09:23
  4. Slow painting in QGraphicsView
    By JonathanForQT4 in forum Qt Programming
    Replies: 12
    Last Post: 16th July 2007, 09:54

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.