linuxdev
10th December 2008, 15:34
Hi,
I have developed an application in Qt, all drawing is perfomed using QPainter.
Application receives data from a socket and draw objects on the display, i also have a background Pixmap to display.
The application is not responding when its loaded moderately i.e. display freezes.
I have one class inherited from QWidget, which does all the drawing,
can i make it as a Thread, by inheriting from QThread and call just painter->update(), function in that?
Making all drawing as a seperate thread....so that performance is increased. :confused:
Or is it much better to redesign my application using Graphics View.(I have not used Graphics View till now, so not very confident about it).
Kindly looking forward to response....:)
I have developed an application in Qt, all drawing is perfomed using QPainter.
Application receives data from a socket and draw objects on the display, i also have a background Pixmap to display.
The application is not responding when its loaded moderately i.e. display freezes.
I have one class inherited from QWidget, which does all the drawing,
can i make it as a Thread, by inheriting from QThread and call just painter->update(), function in that?
Making all drawing as a seperate thread....so that performance is increased. :confused:
Or is it much better to redesign my application using Graphics View.(I have not used Graphics View till now, so not very confident about it).
Kindly looking forward to response....:)