Qt4 custom window frames like in office 2007?

不羁岁月 提交于 2019-12-22 06:06:52

问题


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.

Maybe there is some extension to QMainWindow ?

Thanks for help.


回答1:


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




回答2:


if you are talking about the theme, then Office from 2007 onwards has the Ribbon Interface

In Qt no ready solution is availble yet, as in the threads:

  • http://www.qtcentre.org/threads/14376-Is-there-any-way-to-create-new-style-toolbar-like-in-MSO-2007-8
  • Does Qt support ribbon control?

EDIT: a commercial READY solution: http://www.devmachines.com/products/qtitanribbon.html




回答3:


http://www.devmachines.com has a product called QtitanRibbon, that should serve your needs. Do keep in mind though, that you'll need to get a license from Microsoft to use the Ribbon interface. It is royalty free to obtain from Microsoft, but they will not give you a license should you want to create an application that competes with an Office Application.



来源:https://stackoverflow.com/questions/5316197/qt4-custom-window-frames-like-in-office-2007

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!