Qt 实现 自定义窗口标题栏

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

文件下载

资源详情

[{"title":"( 33 个子文件 853KB ) Qt 实现 自定义窗口标题栏","children":[{"title":"CustomTitleDemoV1.0","children":[{"title":"CustomTitle.sln <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"Win32","children":[{"title":"Debug","children":[{"title":"CustomTitle.ilk <span style='color:#111;'> 1.69MB </span>","children":null,"spread":false},{"title":"CustomTitle.exe <span style='color:#111;'> 283.00KB </span>","children":null,"spread":false},{"title":"CustomTitle.pdb <span style='color:#111;'> 3.06MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CustomTitle.v12.suo <span style='color:#111;'> 29.00KB </span>","children":null,"spread":false},{"title":"CustomTitle","children":[{"title":"mytitlebar.h <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"customtitle.ui <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"mytitlebar.cpp <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"basewindow.h <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"customtitle.h <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"CustomTitle.vcxproj.user <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"nofocuswidget.h <span style='color:#111;'> 382B </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":"max.png <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"close.png <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"min.png <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"restore.png <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"titleicon.png <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"basewindow.cpp <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"nofocuswidget.cpp <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"GeneratedFiles","children":[{"title":"Release","children":null,"spread":false},{"title":"ui_customtitle.h <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"ui_nofocuswidget.h <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"moc_customtitle.cpp <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"moc_basewindow.cpp <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"moc_mytitlebar.cpp <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"moc_nofocuswidget.cpp <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false}],"spread":false},{"title":"qrc_customtitle.cpp <span style='color:#111;'> 156.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"CustomTitle.vcxproj.filters <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"CustomTitle.vcxproj <span style='color:#111;'> 17.75KB </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":"customtitle.qrc <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"nofocuswidget.ui <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"customtitle.cpp <span style='color:#111;'> 160B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • xuhuaihong1 :
    哎呀哎呀呀
    2020-09-26
  • xuhuaihong1 :
    哎呀哎呀呀
    2020-09-26
  • banjiaoshi_123 :
    用qml会更方便,这个可以参考
    2019-03-27
  • 还是石头 :
    用qml会更方便,这个可以参考
    2019-03-27
  • cw1982519 :
    可以参考的,不错的例子代码
    2019-03-01
  • cw1982519 :
    可以参考的,不错的例子代码
    2019-03-01
  • andy4242157 :
    还可以,好资源
    2018-08-08
  • andylfang :
    还可以,好资源
    2018-08-08
  • qq_39461957 :
    有点贵啊 兄弟
    2018-08-04
  • 青柠T~T :
    有点贵啊 兄弟
    2018-08-04

免责申明

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