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:
#include <QtGui>
#include <QGLWidget>
int main(int argc, char* argv[])
{
w.
scene()->addPixmap
(QPixmap(":/trolltech/styles/commonstyle/images/networkdrive-128.png").
scaled(1025,
1025));
w.show();
return app.exec();
}
#include <QtGui>
#include <QGLWidget>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QGraphicsView w;
w.setScene(new QGraphicsScene);
w.setViewport(new QGLWidget);
w.scene()->addPixmap(QPixmap(":/trolltech/styles/commonstyle/images/networkdrive-128.png").scaled(1025,1025));
w.show();
return app.exec();
}
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.
Bookmarks