5

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.

yolo
  • 2,757
  • 6
  • 36
  • 65

3 Answers3

2

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 ribbon

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


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

Community
  • 1
  • 1
yolo
  • 2,757
  • 6
  • 36
  • 65
2

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.

Varun Madiath
  • 3,152
  • 4
  • 30
  • 46
  • Thanks, good to know. But I am looking only for a different type of window decoration. AFAIK devmachines provides only ribbon that is displayed inside native window borders. –  Mar 24 '11 at 18:32
  • BTW I think that the only right that Microsoft has to this so called Ribbon is based on USA patents. So most Europeans can ignore it :) –  Mar 24 '11 at 18:35