[Qt-jambi-interest] BackgroundRole
Vincent Lebreil
vincent.lebreil at gmail.com
Wed Feb 11 11:26:44 CET 2009
Ok me again :)
I found it: QApplication.setStyle(String)
Then i got allowed styles with QStyleFactory.keys(): [Windows, WindowsXP,
WindowsVista, Motif, CDE, Plastique, Cleanlooks]
So i tried with some of them:
It works with the following styles: Windows, WindowsXP
but not with: WindowsVista
Do you know why ?
Thx
On Wed, Feb 11, 2009 at 11:17 AM, Vincent Lebreil <vincent.lebreil at gmail.com
> wrote:
> More information:
>
> I guess you're not using Vista ;) cause in fact I've tried to change QStyle
> in my source code by adding this line:
>
> QApplication.setStyle(new QWindowsStyle());
>
> Then it works! ... but with an old-fashioned style (windows 3.1)
>
> I've not been able to find QWindowsXPStyle, QWindowsVistaStyle in
> qtjambi-4.4.3_01.jar.
>
> So I'm not able to apply a specific style...
>
> However, with demo (qtjambi.exe), it's possible to apply specific style
> (Vista, XP and so on)... . how is this possible ?
>
> Please help me :)
>
>
>
> On Wed, Feb 11, 2009 at 10:49 AM, Vincent Lebreil <
> vincent.lebreil at gmail.com> wrote:
>
>> I forgot to tell you that I'm using QtJambi 4.4.3_01, Eclipse Ganymede,
>> Windows Vista, and JRE 1.6.0_02
>>
>> Have you any idea why this is not working with my configuration ??
>>
>> thx
>>
>> V.
>>
>>
>> On Wed, Feb 11, 2009 at 10:18 AM, Gunnar Sletta <gunnar at trolltech.com>wrote:
>>
>>> Vincent Lebreil wrote:
>>>
>>>> But with the code I sent you, ie with a QTreeView AND a
>>>> QAbstractItemModel (not a QAbstractTableModel) (see my code below), do you
>>>> reproduce this behaviour ?
>>>>
>>>
>>> this example also works for me ;)
>>>
>>> -
>>> Gunnar
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090211/1d347d93/attachment.html
More information about the Qt-jambi-interest
mailing list