I have a stylesheet.css file in config folder. If this file is empty i have no problem when i configured radiobox and checkbox with diferents fonts, colors, font size.
When i put anything inside the .css file, for example this:
QPushButton
{
border: 2px solid rgb(0, 0,255 );
background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 #0A78E7, stop: 1 #FFFFFF);
border-radius: 7px;
font-family: "Arial";
font-size: 16px;
font-style: bold;
}
all style of the radio buttons and check buttons of the project change to get the same font, font size, color...etc..I don't understant this..
If i configured in the stylesheet.css a configuration for checkbox and radiobutton, all radio buttons and check box in the project gets this configuration correctly.
How can i resolve that?
I send a image with a panel start with .css and a second panel start without .css
The .css only contains the configuration of the QPushButton write in this message.
Thanks!
stylesheet.css
Search
Re: stylesheet.css
When you use the following syntax then only buttons that have the name 'hoverButton' will use the style:
QPushButton#hoverButton {
border: 0;
background-color: transparent;
}
I'm using this to make truly transparant (and invisible) buttons (the normal button will still show a small border).
Hope this helps !
QPushButton#hoverButton {
border: 0;
background-color: transparent;
}
I'm using this to make truly transparant (and invisible) buttons (the normal button will still show a small border).
Hope this helps !
Re: stylesheet.css
Thanks, i know that...but my problem is when i have one configuration in css (push button or other), the object radio button and check button in my application can't change his properties ( size font, font, color font,etc...). if i don't have .css i can change it.


Re: stylesheet.css
I don't seem to have the problems that you have, but I'm only using stylesheet to change the properties of a named item (e.g. add the name of the button) . I've never used it like you do.
You might also check the Qt websites for help. There are many examples on the usage of these stylesheets.
This might be more a Qt challenge than a WinCC OA challenge.
http://harmattan-dev.nokia.com/docs/lib ... mples.html
Good luck !
You might also check the Qt websites for help. There are many examples on the usage of these stylesheets.
This might be more a Qt challenge than a WinCC OA challenge.
http://harmattan-dev.nokia.com/docs/lib ... mples.html
Good luck !
Re: stylesheet.css
I've tried both, to change the properties of one named shape with eg. QPushButton#xxx and with the QPushButton [type = "xxx"]
And it is correct that the checkbox and the radiobox loose their properties. This happens because the QT objects radiobox and checkbox are complex objects and contain more than one object. Normally the MultiLabeledParent inherits the properties to the childs, the QCheckBox::indicator. If you use a stylesheet the inheritage gets lost because QT will offer you the option to configure nearly every property of any used object.
Note: At the moment it is not possible to give several checkboxes and radioboxes a different look.
And it is correct that the checkbox and the radiobox loose their properties. This happens because the QT objects radiobox and checkbox are complex objects and contain more than one object. Normally the MultiLabeledParent inherits the properties to the childs, the QCheckBox::indicator. If you use a stylesheet the inheritage gets lost because QT will offer you the option to configure nearly every property of any used object.
Note: At the moment it is not possible to give several checkboxes and radioboxes a different look.
Re: stylesheet.css
Ok, thanks...i will configure my project for only one radiobutton and checkbox configuration.