Direct draw enabled widgets in QT

Trump_zhai 2013-06-03 09:11:43
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
...全文
157 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
超开心~ 2013-06-04
  • 打赏
  • 举报
回复
I see some of your blogs is written in Chinese.So ,why did not you describe this problem in Chinese?
BlackGhost 2013-06-04
  • 打赏
  • 举报
回复
我用定时器,持续刷新
Trump_zhai 2013-06-04
  • 打赏
  • 举报
回复
引用 5 楼 jdwx1 的回复:
I看不明白English。
膜拜大神,求指导
jdwx 2013-06-04
  • 打赏
  • 举报
回复
I看不明白English。
Trump_zhai 2013-06-04
  • 打赏
  • 举报
回复
引用 3 楼 chengchaooppo 的回复:
I see some of your blogs is written in Chinese.So ,why did not you describe this problem in Chinese?
引用 3 楼 chengchaooppo 的回复:
I see some of your blogs is written in Chinese.So ,why did not you describe this problem in Chinese?
copy and paste
Trump_zhai 2013-06-03
  • 打赏
  • 举报
回复
引用 1 楼 heksn 的回复:
void QWidget::update ( const QRect & rect ) ???
it donesn't work. I reimplement the QGraphicsProxyWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget),while the para widget is Null, what a fuck?
  • 打赏
  • 举报
回复
void QWidget::update ( const QRect & rect ) ???

16,173

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧