ui->graphicsView_3->setSceneRect(0,0,691, 381);
dataScene.setSceneRect(0,0,691,381);
//QPen pen(Qt::black, 1);
//need to change color of text here:
/*
QFont console("Lucida Console", 10, QFont::Bold);
QGraphicsItem* item = dataScene.addText("A", console);
// "A" will be replaced with variable QString to
// draw out a table...
item->setPos(50,50);
*/
dataScene.addText("Hello World"); //temp test string
ui->graphicsView_3->setScene(& dataScene);
ui->graphicsView_3->show();
ui->graphicsView_3->setSceneRect(0,0,691, 381);
dataScene.setSceneRect(0,0,691,381);
//QPen pen(Qt::black, 1);
//need to change color of text here:
/*
QFont console("Lucida Console", 10, QFont::Bold);
QGraphicsItem* item = dataScene.addText("A", console);
// "A" will be replaced with variable QString to
// draw out a table...
item->setPos(50,50);
*/
dataScene.addText("Hello World"); //temp test string
ui->graphicsView_3->setScene(& dataScene);
ui->graphicsView_3->show();
To copy to clipboard, switch view to plain text mode
Bookmarks