dpatel
15th July 2010, 07:50
Hi,
I am using QGraphicsView (which has QGraphicsScene containing the widgets) for my UI. In main() I create QGraphicsView object and set the scene and add widgets to it. Then I call show() on QGraphicsView. This setup works fine.
Now I move the QGrahicsView and related setup to a separate class and expose a function loadUI() which will be called from the main() to load the UI. When I call loadUI(), the UI come for a fraction of section and then goes away. The application is still running but no UI.
What is wrong with my new setup?
Thanks.
I am using QGraphicsView (which has QGraphicsScene containing the widgets) for my UI. In main() I create QGraphicsView object and set the scene and add widgets to it. Then I call show() on QGraphicsView. This setup works fine.
Now I move the QGrahicsView and related setup to a separate class and expose a function loadUI() which will be called from the main() to load the UI. When I call loadUI(), the UI come for a fraction of section and then goes away. The application is still running but no UI.
What is wrong with my new setup?
Thanks.