September 29, 2011

Tyan.J Tyan.J
Lab Rat
1 posts

qwidgets onto qglwidget without QGraphicsScene/QGraphicsView

 

Hi.
I have a problem with performance of my Opengl program, based on QGraphicsScene/QGraphicsView.
There are complex calculations with every MouseMove, and period between MouseMove event is about 5 msec if I am using QGraphicsScene/QGraphicsView and QProxyWidgets.

Using QMainWindow

QMainWindow w; w.setCentralWidget(new CDrawingWidget(&w)); //CDrawingWidget == QGlWidget

gives 50 msec between MouseMove event. Much faster, but there are problems with widgets onto MainWindow.
For example all widget shadow area is white.

Can anybody give some advise how to solve the problem?

Thanks!

0 replies

 
  ‹‹ #ifdef’ing between Desktop and Device builds      custom c++ types exposed to QML ››

You must log in to post a reply. Not a member yet? Register here!