How to apply a style sheet to a Gambas QT application?
Posted
#1
(In Topic #1088)
Regular

Or is it a QT Creator https://www.qt.io/product/development-tools only feature https://doc.qt.io/arch…/stylesheet-examples.html and completely unsupported in Gambas?
Posted
Regular

I have used this before to "correct" some of the styles "kindly" imposed by my distro. Such as "bold" means "white text on a black background" which obviously attracts those with the IQ of a 4yo as a "great idea".
bruce
(btw, there are a couple of other things you may need to swing an axe at when using qt styling from within Gambas, they live in the users environment variables, "QT_CONFIG" things. I am sorry but I don't have the time at present to recall them.)
Posted
Regular

Thank you for pointing me to the right directionthatbruce said
You can make stylesheets for QT5 (using the qt config thingy, I forget its name, qt5ct or something) but it will apply to the entire user session so I think you'll have to come up with fairly unique names. I have no idea whether QT has the same "impeding catastrophe" or "danger Will Robinson" properties for their buttons though.
I have used this before to "correct" some of the styles "kindly" imposed by my distro. Such as "bold" means "white text on a black background" which obviously attracts those with the IQ of a 4yo as a "great idea".
bruce
(btw, there are a couple of other things you may need to swing an axe at when using qt styling from within Gambas, they live in the users environment variables, "QT_CONFIG" things. I am sorry but I don't have the time at present to recall them.)
1 guest and 0 members have just viewed this.



