News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

qOrbiter add stylesheet.qss

Started by polly, November 04, 2012, 05:09:32 PM

Previous topic - Next topic

polly

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

tschak909

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

golgoj4

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

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!
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

polly


polly

Quote from: golgoj4 on November 04, 2012, 05:21:25 PM
Is there some other qml issues you are having defining the style?

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

Thanks