Arora (our webbrowser on the Pandora) runs with QT
LineOf7s (the first time) said:If we're curious as to what's in the Angstrom repo already, is http://www.angstrom-...ution.org/repo/ the best place to look, or do informed people have a nicerer place to go?
john4p said:By the time you have your Pandora Qt 4.7 will fully work on it...
class GameWindow : public QGraphicsView
{
public:
explicit GameWindow(const QWidget *parent = 0);
protected:
QGraphicsScene scene;
};
GameWindow::GameWindow(const QWidget *parent)
: QGraphicsView(parent)
{
setViewport(new QGLWidget(this)); //To get OpenGL acceleration
setScene(scene); //To view scene contents
setFixedSize(800, 480); //To fix size issues on platforms other than the Pandora
scene.addPixmap(QPixmap(":/sprites/mysprite.png")); //Displays the pixmap "mysprite.png" that is stored as a QRC resource
}
void main(const int argc, const char *argv[])
{
QApplication app(argc, argv);
GameWindow window;
window.showMaximized();
app.exec();
}
By 'accident' I ran into this thread and the QT documentation on the same day. In case anyone's still wondering:dflemstr said:[*]If you want to rotate something, do so sparingly, since I don't know whether "qreal" is defined to be a "double" or a "float", and if it's a "double", rotations will be *slow* obviously.
QT 4.6 doc said:Typedef for double on all platforms except for those using CPUs with ARM architectures. On ARM-based platforms, qreal is a typedef for float for performance reasons.