I'm using css styles to change some details to objects. With these we are able to correctly change all objects'details that we find on the documentation on qt-project.org.
Unfortunately I haven't found any reference to the Scheduler object (I would like to remove the white background and modify the forecolor of the text).
Can you give me a tip on where to find the details in the Qt documentation please?
Thanks
Andrea
Scheduler ewo css
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Scheduler ewo css
Since the scheduler ewo does not use a standard Qt widget, you cannot find it in the Qt documentation.
You should be able to change the color by using the class 'SchedWidget'.
You should be able to change the color by using the class 'SchedWidget'.
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
Re: Scheduler ewo css
Thanks for the reply.
Can you give me the tip on where to learn how work the classes to change the properties of ewos?
Can you give me the tip on where to learn how work the classes to change the properties of ewos?
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Scheduler ewo css
Unfortunately I do not have any tips. The used classes should be part of the documentation, so send them an e-mail as the announcement states.
Perhaps there is a workshop available, ask your sales contact for the possibilities.
And in the meantime ask support or here.
Perhaps there is a workshop available, ask your sales contact for the possibilities.
And in the meantime ask support or here.
- tpjctrl
- Posts:145
- Joined: Tue May 08, 2018 10:30 am
Re: Scheduler ewo css
Andrea, have you managed to do any further work on this? I'm also using this widget and it would be nice to change the style as it's not particularly nice looking.
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
Re: Scheduler ewo css
Hi!
Yes, youhave to use css... I don't know if you've ever tried it.
You declare a style file with .css format, and launch your ui by passing the absolute path to your file.
Insert this test style:
SchedWidget {
background-color: rgb(105,104,103);
color:rgb(255,255,255);
border-radius: 6px;
padding: 4px;
}
And launch your ui by adding this parameter
-stylesheet "C:\WinCC_OA_Proj\PROJ_PATH\css\myStyle.css"
Unfortunately, I couldn't find any QT documentation on that object, surely there must be other properties that can be modified
Yes, youhave to use css... I don't know if you've ever tried it.
You declare a style file with .css format, and launch your ui by passing the absolute path to your file.
Insert this test style:
SchedWidget {
background-color: rgb(105,104,103);
color:rgb(255,255,255);
border-radius: 6px;
padding: 4px;
}
And launch your ui by adding this parameter
-stylesheet "C:\WinCC_OA_Proj\PROJ_PATH\css\myStyle.css"
Unfortunately, I couldn't find any QT documentation on that object, surely there must be other properties that can be modified
- tpjctrl
- Posts:145
- Joined: Tue May 08, 2018 10:30 am
Re: Scheduler ewo css
Thanks Andrea, this is mighty helpful!