像office 2007一样的Qt4自定义窗框? [英] Qt4 custom window frames like in office 2007?

查看:35
本文介绍了像office 2007一样的Qt4自定义窗框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强制 Qt4 绘制类似于 office 2007/2010 的窗口框架?我希望我的应用程序在所有 Windows 版本中看起来都一样,而不仅仅是 vista/7.

is there a way to force Qt4 to draw window frame similar to office 2007/2010 ? I want my application to look the same in all windows versions not just vista/7.

也许 QMainWindow 有一些扩展?

Maybe there is some extension to QMainWindow ?

感谢您的帮助.

推荐答案

您必须删除标题栏并自己实现它.它是窗口管理器的一部分.它的提供取决于您运行的操作系统(Windows、OSX、Linux...).它可以通过设置 WindowFlags http://doc.trolltech.com/4.2/qwidget.html#windowFlags-prop

You have to remove the titlebar and implement it yourself. It is part of the window manager. It is supplied depending on the OS you are running under (Windows, OSX, Linux...). It can be removed by setting the WindowFlags http://doc.trolltech.com/4.2/qwidget.html#windowFlags-prop

这篇关于像office 2007一样的Qt4自定义窗框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆