-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels in QLinearGradient value #74
Comments
Hi @MarcelSoftware thank you for the feedback! Could it be possible for you to share a more in detail example of what you are doing so we can reproduce the issue locally? Let us know! |
Sure, if I write this code in my source file: After running qtsass I get: When I add x1, y1, x2, y2 and stop to the generated qss file, it works. FYI: I'm using Qt 5.12 |
Hi and sorry for the late response! I Checked this using as QWidget{
background-color: qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green));
} And then running QWidget {
background-color: qlineargradient(x1: 0.0, y1: 0.0, x2: 0.0, y2: 1.0, stop: 0.1 rgba(0, 0, 255, 100%), stop: 0.8 rgba(0, 128, 0, 100%)); } Checking the output I think is correct since:
Env details:
So not totally sure what could be happening here 🤔 If you have any other info in order to better understand/replicate this let us know! |
I know to use a QLinearGradient, I need to use the special syntax.
This is compiling like explained in the readme.
But when I start my Qt Application this style is not working.
When I'm adding the labels (x1, y1, ...) manually in the qss file, it works as expected in the application.
Is there a possibility to add these labels automatically in the code?
The text was updated successfully, but these errors were encountered: