Results 1 to 2 of 2

Thread: QGraphicsView and panning performance

  1. #1
    Join Date
    Sep 2009
    Posts
    49
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsView and panning performance

    Related to : PyQt 4.6.1
    I have created an application using QGraphicsView & QGraphicsItem. App is visual node based shader creation tool. Here is a screen shot of a similar application

    http://www.creativeobserver.com/img/...3ds_max_lg.jpg

    Each node is sub classed QGraphicsItem and contains several other (input and output attributes) QGraphicsItem parented to it.
    Zoom and Pan has been implemented using this article:

    http://wiki.qtcentre.orgphp?title=QG...ooming#Panning

    A special care has been taken in paint event of QGraphicsItem to not do unnecessary calculations inside it.
    Still panning is not as smooth as it has to be.
    Any pointers to smooth down panning operation?
    Logically, when you start panning save the state of entire view and call it later when you finished panning or something like that.
    Prashant


    qt-sdk-win-opensource-2009.03.1.exe
    Python 2.6.3
    PyQt-Py2.6-gpl-4.6-1
    Win XP, 32 Bit

  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: QGraphicsView and panning performance

    Hard to give hints if we don't know what you already did.
    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.


Similar Threads

  1. Replies: 1
    Last Post: 15th June 2009, 17:28

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.