[问题] 请问qt有办法把主视窗变成跟ios的一样吗

楼主: checkIO (chec)   2017-09-17 00:10:58
开发平台(Platform): (Ex: Win10, Linux, ...)
win7
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
vs2015
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
qt
问题(Question):
https://imgur.com/2zrY6pO
请问有办法把主画面 变成这样吗
目前试过QGraphicsBlurEffect
但那会让所有new在上面的画面一起模糊...
使用QDIAGLOG 好像也只是透过去 没办法做到模糊
setWindowOpacity 又太透明了 没朦侬美
作者: uranusjr (←這人是超級笨蛋)   2017-09-17 00:25:00
把前后景的 parent hierarchy 分开, 背景做模糊, 前面做成 frameless dialog + 透明背景叠上去类似的 https://stackoverflow.com/a/19386886/1376863
楼主: checkIO (chec)   2017-09-17 00:42:00
parent hierarchy 想请问这个是哪一段CODE分开的呢
作者: uranusjr (←這人是超級笨蛋)   2017-09-17 01:01:00
就是你在 new widget 的时候 parent 不要设成同一个系列http://doc.qt.io/qt-5/objecttrees.html

Links booklink

Contact Us: admin [ a t ] ucptt.com