看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: Win10, Linux, ...) win7 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) vs2015 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) qt 問題(Question): https://imgur.com/2zrY6pO 請問有辦法把主畫面 變成這樣嗎 目前試過QGraphicsBlurEffect 但那會讓所有new在上面的畫面一起模糊... 使用QDIAGLOG 好像也只是透過去 沒辦法做到模糊 setWindowOpacity 又太透明了 沒朦儂美 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.151.200 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1505578260.A.E04.html
uranusjr: 把前後景的 parent hierarchy 分開, 背景做模糊, 前面做 09/17 00:25
uranusjr: 成 frameless dialog + 透明背景疊上去 09/17 00:26
uranusjr: 類似的 https://stackoverflow.com/a/19386886/1376863 09/17 00:26
checkIO: parent hierarchy 想請問這個是哪一段CODE分開的呢 09/17 00:42
uranusjr: 就是你在 new widget 的時候 parent 不要設成同一個系列 09/17 01:01
uranusjr: http://doc.qt.io/qt-5/objecttrees.html 09/17 01:03
想請問一下 explicit ContainerWidget(QWidget * parent = {}) : QWidget{ parent } {} 這個寫法如果要改成 ContainerWidget.h ContainerWidget.cpp要怎樣處理呢 :QWidget{ parent } 會出現紅色的錯誤 不知道這行代表甚麼意思? ※ 編輯: checkIO (111.248.151.200), 09/17/2017 10:30:52