LinuxMCE Forums

General => Users => Topic started by: polly on November 04, 2012, 05:09:32 pm

Title: qOrbiter add stylesheet.qss
Post by: polly on November 04, 2012, 05:09:32 pm
Hey,

i read about adding a stylesheet to Qt Apps.
http://www.qtcentre.org/threads/12454-how-to-apply-stylesheet-defined-in-qss-file-to-qt-application

This would be really useful/handy for me when it comes to orientation change, and little adjustments depending on the device.

How can i load a stylesheet into qOrbiter?

Thanks

ochorocho
Title: Re: qOrbiter add stylesheet.qss
Post by: tschak909 on November 04, 2012, 05:11:17 pm
Currently, we're doing that in qml itself, with Style.qml files.  Look at the default skins, for an example.

If you want this, talk to golgoj4.

-Thom
Title: Re: qOrbiter add stylesheet.qss
Post by: golgoj4 on November 04, 2012, 05:21:25 pm
There will be no stylesheets.

Use style.qml to define all properties. That in essence is your 'style sheet'. I will not integrate the other stylesheets as the introduce more problems than they solve.

Its quite trivial to set a property for both orientations

Code: [Select]
property int buttonH: b_orientation ? 50 : 60
This for example will make the property button height change based on the orientation. Is there some other qml issues you are having defining the style?

-golgoj4
trust me, stylesheets become problematic!
Title: Re: qOrbiter add stylesheet.qss
Post by: polly on November 04, 2012, 05:33:57 pm
sounds good! thanks.

ochorocho
Title: Re: qOrbiter add stylesheet.qss
Post by: polly on November 05, 2012, 01:43:49 am
Is there some other qml issues you are having defining the style?

nope .... not right now. :-)

Thanks