Well, i try to use an graphicsview.
It's located in an dialog form (createt with the designer from qt creator IDE) and called "test".
In the constructor of the form (after m_ui->setupUi(this)
i tried this, to write anything on the gv.
scene.addText("GraphicsView rotated clockwise");
m_ui->test->setScene(&scene);
m_ui->test->rotate(90); // the text is rendered with a 90 degree clockwise rotation
m_ui->test->show();
QGraphicsScene scene;
scene.addText("GraphicsView rotated clockwise");
m_ui->test->setScene(&scene);
m_ui->test->rotate(90); // the text is rendered with a 90 degree clockwise rotation
m_ui->test->show();
To copy to clipboard, switch view to plain text mode
But it has no effect. The graphicsview is still empty.
What am I doing wrong?
Thanks
Bookmarks