qgraphicsscene Questions
1
Solved
Good day!
With Qt 4.7.3 an example below crashes at QGraphicsScene::~QGraphicsScene() call:
#include <QCoreApplication>
#include <QGraphicsScene>
int main( int argc, char* argv[] )
{...
Biquarterly asked 28/10, 2011 at 13:34
1
Solved
I have the following code to set up a QGraphicsScene. I wish to click on the scene and draw a point at the location I've clicked. How could I do this? This is my current code:
MainWindow::MainWind...
Diamine asked 20/10, 2011 at 1:9
3
With the below code snippet I create a scene with 100.000 rectangles.
The performance is fine; the view responds with no delays.
QGraphicsScene * scene = new QGraphicsScene;
for (int y = -50000; y...
Mueller asked 28/5, 2011 at 21:48
3
I am using Qt and C++ as my environment.
I draw a QGraphicsView in my UI, then create a scene and add lines to that it.
I run through an array of 5000 points and draw lines connecting each point.
Q...
Fabliau asked 15/10, 2010 at 13:18
1
Solved
I have been toying with this piece of code:
QGraphicsLineItem * anotherLine = this->addLine(50,50, 100, 100);
qDebug() << anotherLine->scenePos();
QGraphicsLineItem * anotherLine2 = t...
Lecher asked 20/7, 2009 at 5:34
© 2022 - 2024 — McMap. All rights reserved.