• 4861阅读
  • 0回复

QT是否可以直接在桌面上绘图? [复制链接]

上一主题 下一主题
离线中华民国
 
只看楼主 正序阅读 楼主  发表于: 2010-02-26
看qt的帮助文件,里面说了一句:


On X11, it is also possible to draw on the desktop.

好像说可以直接在桌面上绘制?不知道哪位高手知道怎么操作,能否给个例子,谢谢

QDesktopWidget * QApplication::desktop ()   [static]
Returns the desktop widget (also called the root window).

The desktop may be composed of multiple screens, so it would be incorrect, for example, to attempt to center some widget in the desktop's geometry. QDesktopWidget has various functions for obtaining useful geometries upon the desktop, such as QDesktopWidget::screenGeometry() and QDesktopWidget::availableGeometry().

On X11, it is also possible to draw on the desktop.
快速回复
限100 字节
 
上一个 下一个