Code: Select all
lblAction->setProperty("HorzLabelFormatting", "HorzLeftAligned");
But got an exception about HorzLabelFormatting not being an available property. I also tried "HorzFormatting" with the same result. Any ideas? Also, is there a reason that these common widget-specific properties are not available as getters/setters on the widget classes themselves? Having to reference string property names in code is very difficult compared to using a method, which is available through an IDE's completion assistance.
I fount the latter in a forum question where someone had a similar problem, and the former i found on the wiki page that lists all the properties for all the widgets (maybe it's not up to date or something).