Qt 之 自定义窗口标题栏

上传者: goforwardtostep | 上传时间: 2021-08-21 00:28:44 | 文件大小: 815KB | 文件类型: RAR
以上代码用Qt实现了自定义窗口标题栏,非常实用,提供了窗口图标、窗口标题、最小化、最大化、关闭按钮等几个部分。可以应用到每一个窗口中去,保持每个窗口外观的一致性,同时自定义的标题栏也比系统自带的漂亮很多。

文件下载

资源详情

[{"title":"( 30 个子文件 815KB ) Qt 之 自定义窗口标题栏","children":[{"title":"CustomTitle","children":[{"title":"CustomTitle","children":[{"title":"mytitlebar.h <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"Resources","children":[{"title":"MyTitle.css <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"MyTitle","children":[{"title":"close.png <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"restore.png <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"max.png <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"min.png <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"titleicon.png <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"nofocuswidget.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"GeneratedFiles","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"moc_nofocuswidget.cpp <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"moc_customtitle.cpp <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"moc_mytitlebar.cpp <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"ui_nofocuswidget.h <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false},{"title":"ui_customtitle.h <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"qrc_customtitle.cpp <span style='color:#111;'> 156.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"nofocuswidget.ui <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"customtitle.qrc <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":"mytitlebar.cpp <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"customtitle.ui <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"customtitle.h <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"nofocuswidget.cpp <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"CustomTitle.vcxproj.user <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"CustomTitle.vcxproj <span style='color:#111;'> 15.62KB </span>","children":null,"spread":false},{"title":"customtitle.cpp <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"CustomTitle.vcxproj.filters <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"CustomTitle.sln <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"CustomTitle.v12.suo <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Win32","children":[{"title":"Debug","children":[{"title":"CustomTitle.pdb <span style='color:#111;'> 2.75MB </span>","children":null,"spread":false},{"title":"CustomTitle.exe <span style='color:#111;'> 278.50KB </span>","children":null,"spread":false},{"title":"CustomTitle.ilk <span style='color:#111;'> 1.56MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • kylong :
    谢谢分享正式我想要的版本
    2021-01-25

免责申明

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