Qt设置窗体的透明度: setWindowOpacity

在Qt中,设置窗体透明度的函数有:void   setWindowOpacity(qreal level)

 

特性:

 

    • 透明度的有效范围从1.0(完全不透明)到0.0(完全透明的)。

    • 默认情况下,此属性的值是1.0。(也就是不透明状态)

    • 这个特性可以在嵌入式Linux、Mac OS X、Windows、和X11平台上使用。

    • 此功能不可用在Windows CE。

    • 还要注意,半透明的windows更新和调整明显慢于不透明的窗口。(透明窗体的刷新速度会变慢)

http://blog.csdn.net/rl529014/article/details/51584460

posted @ 2016-12-07 21:15  findumars  Views(1199)  Comments(0Edit  收藏  举报