LinuxMCE Forums
May 18, 2013, 08:40:33 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: qOrbiter add stylesheet.qss  (Read 398 times)
polly
Veteran
***
Posts: 145


View Profile
« 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
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 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
Logged
golgoj4
wants to work for LinuxMCE
**
Posts: 819


hrumpf!


View Profile WWW
« Reply #2 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:
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!
Logged

Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius
polly
Veteran
***
Posts: 145


View Profile
« Reply #3 on: November 04, 2012, 05:33:57 pm »

sounds good! thanks.

ochorocho
Logged
polly
Veteran
***
Posts: 145


View Profile
« Reply #4 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!