Hi,
I am working on an embedded device which has direct draw enabled display driver. I am trying to provide direct draw support for QT widgets, if not to the whole QT painting, atleast to have some special widgets to use the direct draw features.
I am facing a few problems. I could create a DxWidget and add it to a qgraphicsproxywidget attached to a graphicsitem. I have given custom implementation to the DxWidget::paintevent using direct draw enabled features and this blits directly to the display screen. ( I have not given the WA_Paintonscreen attribute for the widget, beacause when WA_PaintOnScreen is given, I am not able to add the DxWidget to the proxy widget. ). What happens is, upon Dxwidget:aintevent, I have the required things blitted on screen, even before the qgraphicsview is visible on screen. But when graphicsview is blitted to screen, my custom blitted contents are all over written after QT's painting routines.
Is there some method, by which I can indicate to QT's paint that this widget need not be painted? Or a rect of my custom widget to be ingorned by QT's paitn engine when blitting to screen?
Regards,
zhaifd
Qt QGraphicsView QGraphicsProxyWidget Paint
------解决方案--------------------
void QWidget::update ( const QRect & rect ) ???