Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
None
-
5f9cf976110a0847053f1104376ad8831f9ceb48
Description
Main App
#include <QApplication> #include <QUiLoader> #include <QFile> #include <QWidget> #include <QGraphicsView> #include <QGraphicsScene> int main(int argc, char ** argv) { QApplication app(argc,argv); QUiLoader loader; QFile mainWindowFile("mainwindow.ui"); mainWindowFile.open(QFile::ReadOnly); QWidget *mw = loader.load(&mainWindowFile,0); mainWindowFile.close(); QFile frameFile("DigitsDisplay.ui"); frameFile.open(QFile::ReadOnly); QWidget *f = loader.load(&frameFile,0); frameFile.close(); if(mw && f) { QGraphicsScene * scene = new QGraphicsScene(); QGraphicsView *view = mw->findChild<QGraphicsView *>("graphicsView"); if(view) { view->setScene(scene); scene->addWidget(f); } mw->show(); } return app.exec(); }
The splitter in between the 2 text labels doesn't draw in the correct location in the scene.