首页 移动开发 QT     /    Qt去掉标题栏添加边框阴影

Qt去掉标题栏添加边框阴影

上传者: a844651990 | 上传时间:2024/7/30 7:04:54 | 文件大小:78KB | 文件类型:rar
Qt去掉标题栏添加边框阴影
ShadowWidget基于Qt5的去掉标题栏之后添加边框阴影的解决方案。
四种解决方法:1.如果是Windows平台,那么可以调用Windows相关API。
2.使用Qt的QGraphicsDropShadowEffect类来实现。
3.使用Qt的qDrawBorderPixmap函数来实现。
4.自己构造出边框阴影QImage并绘制。
本软件ID:10841366

文件下载

资源详情

[{"title":"(91个子文件78KB)Qt去掉标题栏添加边框阴影","children":[{"title":"ShadowWidget","children":[{"title":"ShadowEffectWidget.cpp <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>527B</span>","children":null,"spread":false},{"title":"ShadowWidget.pro.user <span style='color:#111;'>23.25KB</span>","children":null,"spread":false},{"title":"NoShadowWidget.h <span style='color:#111;'>497B</span>","children":null,"spread":false},{"title":"DrawBorderPixmapWidget.h <span style='color:#111;'>612B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>581B</span>","children":null,"spread":false},{"title":"ShadowEffectWidget.h <span style='color:#111;'>545B</span>","children":null,"spread":false},{"title":"client-shadow.png <span style='color:#111;'>3.21KB</span>","children":null,"spread":false},{"title":"WindWMAPI.h <span style='color:#111;'>1.24KB</span>","children":null,"spread":false},{"title":"DrawBorderPixmapWidget.cpp <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"WinAPIShadowWidget.h <span style='color:#111;'>527B</span>","children":null,"spread":false},{"title":"WindWMAPI.cpp <span style='color:#111;'>1.35KB</span>","children":null,"spread":false},{"title":"ShadowWidget.pro <span style='color:#111;'>1.31KB</span>","children":null,"spread":false},{"title":"WinAPIShadowWidget.cpp <span style='color:#111;'>879B</span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'>26B</span>","children":null,"spread":false},{"title":"NoShadowWidget.cpp <span style='color:#111;'>391B</span>","children":null,"spread":false},{"title":"MakePixmapWidget.h <span style='color:#111;'>1.36KB</span>","children":null,"spread":false},{"title":"img.qrc <span style='color:#111;'>101B</span>","children":null,"spread":false},{"title":"samples","children":[{"title":"sample4.png <span style='color:#111;'>1.84KB</span>","children":null,"spread":false},{"title":"sample1.png <span style='color:#111;'>3.80KB</span>","children":null,"spread":false},{"title":"sample3.png <span style='color:#111;'>1.82KB</span>","children":null,"spread":false},{"title":"sample2.png <span style='color:#111;'>5.92KB</span>","children":null,"spread":false}],"spread":false},{"title":"MakePixmapWidget.cpp <span style='color:#111;'>10.42KB</span>","children":null,"spread":false},{"title":".git","children":[{"title":"HEAD <span style='color:#111;'>23B</span>","children":null,"spread":false},{"title":"ORIG_HEAD <span style='color:#111;'>41B</span>","children":null,"spread":false},{"title":"packed-refs <span style='color:#111;'>114B</span>","children":null,"spread":false},{"title":"index <span style='color:#111;'>1.99KB</span>","children":null,"spread":false},{"title":"FETCH_HEAD <span style='color:#111;'>99B</span>","children":null,"spread":false},{"title":"COMMIT_EDITMSG <span style='color:#111;'>25B</span>","children":null,"spread":false},{"title":"objects","children":[{"title":"02","children":[{"title":"74c7b068a85a56f0ec11d8a6658b9b944c7349 <span style='color:#111;'>340B</span>","children":null,"spread":false}],"spread":false},{"title":"42","children":[{"title":"44ec7db052ac2adc22554188daf31b658b9a4b <span style='color:#111;'>2.70KB</span>","children":null,"spread":false}],"spread":false},{"title":"6c","children":[{"title":"5b1dc213312964b145ca85d0f608205e765a35 <span style='color:#111;'>555B</span>","children":null,"spread":false}],"spread":false},{"title":"f5","children":[{"title":"67155a6e5ffa6aecc1e67855bd88adb62097f3 <span style='color:#111;'>224B</span>","children":null,"spread":false}],"spread":false},{"title":"dd","children":[{"title":"c89c3d75eccd1422ded2a05628c7c7a847e0db <span style='color:#111;'>86B</span>","children":null,"spread":false}],"spread":false},{"title":"4c","children":[{"title":"16de693e3832b831cdda05d224070eb7169106 <span style='color:#111;'>603B</span>","children":null,"spread":false}],"spread":false},{"title":"87","children":[{"title":"702796fb28fab7fba10d4583192295706c9d32 <span style='color:#111;'>371B</span>","children":null,"spread":false}],"spread":false},{"title":"ce","children":[{"title":"4878c371f86b958d78643f5466478545d9aa9d <span style='color:#111;'>185B</span>","children":null,"spread":false}],"spread":false},{"title":"0a","children":[{"title":"3f0c5caf5cf574d04696f9a398c0ea519130f7 <span style='color:#111;'>645B</span>","children":null,"spread":false}],"spread":false},{"title":"pack","children":null,"spread":false},{"title":"18","children":[{"title":"162ef4a777769bd615f30675f3a7f2fcad11a1 <span style='color:#111;'>47B</span>","children":null,"spread":false}],"spread":false},{"title":"35","children":[{"title":"28b140fb0ca437c918741afab00ffe67007b0f <span style='color:#111;'>3.20KB</span>","children":null,"spread":false},{"title":"268a39f3b7e68683ae527f9f18c94483841eea <span style='color:#111;'>2.42KB</span>","children":null,"spread":false}],"spread":false},{"title":"db","children":[{"title":"71727a9afe87cdf5c6bb24df3eefca3070f8b8 <span style='color:#111;'>555B</span>","children":null,"spread":false}],"spread":false},{"title":"11","children":[{"title":"eeb72b3f29526af3dffe8d3b133ce3c456925f <span style='color:#111;'>5.02KB</span>","children":null,"spread":false}],"spread":false},{"title":"dc","children":[{"title":"842e621e403d1350fc20be02ea3ac69ad4ecd3 <span style='color:#111;'>1015B</span>","children":null,"spread":false}],"spread":false},{"title":"57","children":[{"title":"d5048c3e77afab3006e0b8a3b99349f3a5f837 <span style='color:#111;'>719B</span>","children":null,"spread":false}],"spread":false},{"title":"6a","children":[{"title":"0cb9ea35a9092c846403ad655bb96a89a36817 <span style='color:#111;'>378B</span>","children":null,"spread":false}],"spread":false},{"title":"f0","children":[{"title":"10efa21fbc8a0547cc539d37f5dcd169f27d57 <span style='color:#111;'>645B</span>","children":null,"spread":false}],"spread":false},{"title":"88","children":[{"title":"49d795c440146c9c4555ac8e7eb780dfe2b711 <span style='color:#111;'>607B</span>","children":null,"spread":false}],"spread":false},{"title":"54","children":[{"title":"248fb715fc86b9c04994a43643c6190b6bc707 <span style='color:#111;'>607B</span>","children":null,"spread":false},{"title":"c3f70c8f5a2a888eb79834a5f3d505e64e0602 <span style='color:#111;'>578B</span>","children":null,"spread":false}],"spread":false},{"title":"e8","children":[{"title":"ada40cb582bd50e9d350ee3987ee6eaf0ba7ab <span style='color:#111;'>517B</span>","children":null,"spread":false}],"spread":false},{"title":"b5","children":[{"title":"41781d9449e6f156d41325427bedd6653e38fb <span style='color:#111;'>630B</span>","children":null,"spread":false}],"spread":false},{"title":"47","children":[{"title":"79bb6a10eb2ea998dee8b89b1df49ca79816af <span style='color:#111;'>185B</span>","children":null,"spread":false},{"title":"bc418133d605ab4267d4f9f8b4ef9ec237ed31 <span style='color:#111;'>590B</span>","children":null,"spread":false}],"spread":false},{"title":"c1","children":[{"title":"bdfc35247aeb78bc6da89f142a606563f572a3 <span style='color:#111;'>408B</span>","children":null,"spread":false}],"spread":false},{"title":"ff","children":[{"title":"47e9132a7fab9ebb4dbb6b3b2162a575c498b4 <span style='color:#111;'>909B</span>","children":null,"spread":false}],"spread":false},{"title":"5b","children":[{"title":"5c0175a7d9f5c2c755e66a61f360c05a7cb2fa <span style='color:#111;'>608B</span>","children":null,"spread":false}],"spread":false},{"title":"65","children":[{"title":"ac9da6f35154c7bf2d0a81249bc063920cc082 <span style='color:#111;'>655B</span>","children":null,"spread":false},{"title":"db6cccd503a66d590e39893762a9e5ab1f108d <span style='color:#111;'>223B</span>","children":null,"spread":false}],"spread":false},{"title":"15","children":[{"title":"f5d59acaf6415c7107cbea589d1fd10c6fec9e <span style='color:#111;'>2.97KB</span>","children":null,"spread":false}],"spread":false},{"title":"25","children":[{"title":"065b01a274b12ca62a5f4e3c426faca9b3ab1e <span style='color:#111;'>346B</span>","children":null,"spread":false}],"spread":false},{"title":"8f","children":[{"title":"10171c369c84073a1c2811b524c9eed6ebec2a <span style='color:#111;'>645B</span>","children":null,"spread":false}],"spread":false},{"title":"95","children":[{"title":"d5c4b1bba47f5a9e0ba01476673bd5b5c89b1a <span style='color:#111;'>306B</span>","children":null,"spread":false}],"spread":false},{"title":"5a","children":[{"title":"3fec833b7e9dfcb5fb01565cf245acefafcef1 <span style='color:#111;'>54B</span>","children":null,"spread":false}],"spread":false},{"title":"71","children":[{"title":"3b960b21f7f7e5447b113df5dd4c90aafa9825 <span style='color:#111;'>135B</span>","children":null,"spread":false}],"spread":false},{"title":"ee","children":[{"title":"9e8f00487bfb1f9bea8688b5faf562224037fc <span style='color:#111;'>634B</span>","children":null,"spread":false}],"spread":false},{"title":"f3","children":[{"title":"fd0e07d2404f518ab00a603bcf4560e80848cc <span style='color:#111;'>101B</span>","children":null,"spread":false}],"spread":false},{"title":"37","children":[{"title":"d01385d52bd7bccecb8e1683b69fb6392b636a <span style='color:#111;'>307B</span>","children":null,"spread":false}],"spread":false},{"title":"info","children":null,"spread":false},{"title":"7a","children":[{"title":"1217eebd0a0ccf3eca39bf8dc6eadde18befbd <span style='color:#111;'>40B</span>","children":null,"spread":false}],"spread":false},{"title":"9b","children":[{"title":"9179aa508332bc7ebc8c177edfe03cb593f679 <span style='color:#111;'>276B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"description <span style='color:#111;'>73B</span>","children":null,"spread":false},{"title":"config <span style='color:#111;'>304B</span>","children":null,"spread":false},{"title":"info","children":[{"title":"exclude <span style='color:#111;'>240B</span>","children":null,"spread":false}],"spread":false},{"title":"hooks","children":[{"title":"pre-applypatch.sample <span style='color:#111;'>424B</span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'>1.60KB</span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'>478B</span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'>4.78KB</span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'>896B</span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'>1.46KB</span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'>3.53KB</span>","children":null,"spread":false},{"title":"pre-receive.sample <span style='color:#111;'>544B</span>","children":null,"spread":false},{"title":"fsmonitor-watchman.sample <span style='color:#111;'>3.25KB</span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'>189B</span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'>1.32KB</span>","children":null,"spread":false}],"spread":false},{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'>846B</span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'>846B</span>","children":null,"spread":false}],"spread":false},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'>175B</span>","children":null,"spread":false},{"title":"master <span style='color:#111;'>548B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"refs","children":[{"title":"tags","children":null,"spread":false},{"title":"heads","children":[{"title":"master <span style='color:#111;'>41B</span>","children":null,"spread":false}],"spread":false},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'>32B</span>","children":null,"spread":false},{"title":"master <span style='color:#111;'>41B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 友善啊,朋友:
    资源太棒了,楼主帮里我大忙了2019-06-08

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明