PDA

View Full Version : Qt application with vista style



ahmad_elhoni
31st October 2008, 08:06
Hi there ,

I'm trying to create Qt GUI with vista style using visual studio 2008 .

the problem is that QWindowsVistaStyle works only on windows vista platform .

I found that xtreme toolkit pro can create vista style GUI which works also on windows xp.

but it uses MFC .

How can I combine between Qt and xtreme toolkit pro to have a vista style GUI and Qt componet together ?

Regards ,

Ahmad

wysota
31st October 2008, 08:15
I don't think you can. But this component you speak of probably only creates a skin that looks like vista, but is not vista. If you want something similar with Qt, use stylesheets.

ahmad_elhoni
31st October 2008, 08:38
Thanks for your help ,

But is it possible to change the frame border's style using stylesheet ?

QwertyManiac
31st October 2008, 10:27
Thanks for your help ,

But is it possible to change the frame border's style using stylesheet ?
Yes it supports the box model, so border property can be set. See the Qt Style Sheets Reference for an example.

wysota
31st October 2008, 14:12
But is it possible to change the frame border's style using stylesheet ?

If you mean the top level window border then no. But you can disable it and provide your own looks for it. That's probably what the mfc solution you mentioned does. If you want to try that with Qt, there is an implementation of such a mechanism described somewhere on the forum. I think it was developed by "kernel_panic".