Results 1 to 2 of 2

Thread: QLabel's QPainter vs. QGraphicsView

  1. #1
    Join Date
    Jan 2015
    Posts
    35
    Thanks
    20
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default QLabel's QPainter vs. QGraphicsView

    Hi,

    Now, I use picture slide show in my background app with transaction effect by using QLabel, paintEvent, opacity, Qtimer, QPixmap.
    All are ok. Then I add a new function that add a widget and move it with QTimer when I press a key.
    But movement is delay during changing the picture's transaction time.

    Should I use QGraphicsView instead of QLabel's pixmap for best performance?

    Thanks.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QLabel's QPainter vs. QGraphicsView

    But movement is delay during changing the picture's transaction time.
    Is this delay more than the QTimer used? May be it is due to QTimer.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. QLabel to QgraphicsView
    By 2lights in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2013, 05:44
  2. Replies: 10
    Last Post: 6th February 2011, 21:17
  3. how to get QPainter object for QLabel
    By bpatel in forum Newbie
    Replies: 7
    Last Post: 28th May 2010, 10:30
  4. QPainter paints only what is seen in QGraphicsView
    By tsd-charlie in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2010, 11:59
  5. QPainter and QGraphicsView drawBackground() override
    By forrestfsu in forum Qt Programming
    Replies: 4
    Last Post: 5th December 2006, 15:52

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.