Results 1 to 2 of 2

Thread: QGraphicsPixmapItems through QGLWidget - clearing textures?

  1. #1
    Join Date
    Nov 2007
    Posts
    26
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QGraphicsPixmapItems through QGLWidget - clearing textures?

    Hi,

    Im displaying large images as tiles of QGraphicsPixmapItem's in a graphics view which rendered through a QGLWidget. This seems to be very quick to draw and all is well except when I want to remove and load another set of QGraphicsPixmapItem's.

    They get removed ok, but when I try and load in another set, it takes forever (several minutes) for them to be displayed. Do I have to explicitly clear the old textures from the QGLWidget somehow?

    Thanks in advance

    Jamie

  2. #2
    Join Date
    Nov 2007
    Posts
    26
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsPixmapItems through QGLWidget - clearing textures?

    Deleting and re-creating the QGraphicsView is the only thing I have managed to do so far which actually loads subsequent sets of QGraphicsPixmapItems at a reasonable speed when using a QGLWidget as a viewport. (I only occasionaly need to remove / add QGraphicsPixmapItems).

    It works ok though when using a normal QWidget as a viewport, problem is I need to use a QGLWidget. Anyone know why it's so slow?

Tags for this Thread

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.