Results 1 to 10 of 10

Thread: Bug in QGraphicsPixmapItem with QGLWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Bug in QGraphicsPixmapItem with QGLWidget

    I've noticed that my application freezes when I add a pixmap larger than 1024x1024 to a QGraphicsView with an opengl viewport.

    Could anyone test the following example(on Windows) and see if they have the same problem:
    Qt Code:
    1. #include <QtGui>
    2. #include <QGLWidget>
    3.  
    4. int main(int argc, char* argv[])
    5. {
    6. QApplication app(argc, argv);
    7. w.setScene(new QGraphicsScene);
    8. w.setViewport(new QGLWidget);
    9. w.scene()->addPixmap(QPixmap(":/trolltech/styles/commonstyle/images/networkdrive-128.png").scaled(1025,1025));
    10. w.show();
    11. return app.exec();
    12. }
    To copy to clipboard, switch view to plain text mode 
    My specs:
    Intel P4
    WindowsXP
    Qt 4.4.3 open source
    ATI Radeon X1650
    Video driver: ati2dvag.dll V. 6.14.0010.6764 (English)

    EDIT:
    Just tried it on an AMD Phenom with a NVIDEO GeForce 8400 and it worked. So I'd be greatful if someone could test it with an ATI card.
    Attached Files Attached Files
    Last edited by spud; 16th February 2009 at 15:26.

Similar Threads

  1. Replies: 1
    Last Post: 21st November 2008, 07:00
  2. QFileDialog QGLWidget crashes
    By SenSej in forum Newbie
    Replies: 1
    Last Post: 17th October 2008, 17:06
  3. Replies: 4
    Last Post: 7th May 2008, 00:01
  4. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57
  5. QGLWidget on another QGLWiget
    By showhand in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 09:59

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.