Results 1 to 20 of 72

Thread: QGraphicsScene/QGraphicsView performance problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGraphicsScene/QGraphicsView performance problems

    Quote Originally Posted by bnilsson View Post
    What would be your primary platform?
    Mine is Linux/x86.

    I will have to arrange some way for you to pick up the datafiles, they will be too large for an attachment.
    Can't you just provide some small application that would generate such example datafile? They don't have to make sense and they don't have to be larger than a megabyte. It's just a test app.

    Here is the project.
    It'd be best if you provided something small. It's easier to debug then.

    BTW. I just had a quick look at the code you provided and I have some comments:
    - I'm not sure if manipulating the update mode the way you do is a good idea, you should set the update mode once and never touch it again
    - I'm not sure if beginning by reimplementing the main drawing routine is a good idea. I'd start with the base class implementation first, it's probably trying to be smarter than your implementation
    - why do you use the data stream if you only read raw data and seek through the file? Operate on the file directly instead
    - try not to fall of the scale with your dimensions, 10nm = 10E-8, pretty close to 32bit precision.
    Last edited by wysota; 6th January 2008 at 00:18.

Similar Threads

  1. Performance problems with overlapping qgraphicsitems
    By brjames in forum Qt Programming
    Replies: 13
    Last Post: 4th May 2008, 21:42
  2. Poor performance with Qt 4.3 and Microsoft SQL Server
    By Korgen in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2007, 10:28
  3. GraphicsView performance problems
    By Gopala Krishna in forum Qt Programming
    Replies: 79
    Last Post: 8th August 2007, 17:32
  4. Replies: 2
    Last Post: 8th March 2007, 22:22
  5. Replies: 1
    Last Post: 4th October 2006, 16:05

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
  •  
Qt is a trademark of The Qt Company.