How to apply a style sheet to a Gambas QT application?

Post

Posted
Rating:
#1 (In Topic #1088)
Regular
JumpyVB is in the usergroup ‘Regular’
How does one apply a style sheet (such as https://github.com/git…ob/main/fluent_design.css) to a Gambas QT application?

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?
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
 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.)

Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
JumpyVB is in the usergroup ‘Regular’

thatbruce 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.)
Thank you for pointing me to the right direction
Online now: No Back to the top
1 guest and 0 members have just viewed this.