Unable to debug: WPushButton(...) does not have a property named "layoutAlignment"

Asked by ronso0 on 2016-09-25

I built a skin (http://www.mixxx.org/forums/viewtopic.php?f=8&t=8578) and I'm wondering why the log is filled with lines like this for Sliders, Buttons, VUMeters etc. although I declared alignemt in qss stylesheet.

Example:
Warning [Main]: WVuMeter(0x715d750, name = "SamplerVU") does not have a property named "layoutAlignment"
Warning [Main]: WLabel(0x6de0570, name = "SuperWetDryLabel") does not have a property named "layoutAlignment"
Warning [Main]: WPushButton(0x6d2b210, name = "EffectSelectorButton") does not have a property named "layoutAlignment"
Warning [Main]: WPushButton(0x87ad920, name = "SkinSettingsButton") does not have a property named "layoutAlignment"
Warning [Main]: WStarRating(0x9a868e0, name = "DeckStars") does not have a property named "layoutAlignment"

In qss it looks like this for Buttons, Sliders etc. :
#DeckStars {
    qproperty-layoutAlignment: 'AlignHCenter | AlignVCenter';

I learned the qss settings from default skins like LateNight. What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Mixxx Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Schürmann
Solved:
2016-09-25
Last query:
2016-09-25
Last reply:
2016-09-25
Best Daniel Schürmann (daschuer) said : #1

Only WidgetGroup has a property layoutAlignment.

It might be a solution to put your element in a widget group and set the alignment of this group instead.

ronso0 (medontknow) said : #2

Okay, I got it. Thought that the log message means this property is missing, but the way I declared it was too much.
Thanks!

ronso0 (medontknow) said : #3

Thanks Daniel Schürmann, that solved my question.