Author Topic: qOrbiter add stylesheet.qss  (Read 228621 times)

polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
qOrbiter add stylesheet.qss
« 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

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: qOrbiter add stylesheet.qss
« 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

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: qOrbiter add stylesheet.qss
« 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: [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!
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: qOrbiter add stylesheet.qss
« Reply #3 on: November 04, 2012, 05:33:57 pm »
sounds good! thanks.

ochorocho

polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: qOrbiter add stylesheet.qss
« 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