How fix the QPalette QSTYLE problem?
-
I put the code below into the project.
QPalette{background:#D4D4D4;}*{outline:0px;}That when i used the qcombox ,the selection background becamed the dark color.Whatever I inputting the qstyle of the qcombox,it seemed unuseful.
And I dont know why.
-
only one of the object came the style likes this.Others were normal.
Please help me.

-
only one of the object came the style likes this.Others were normal.
Please help me.

Was that a bug ?
Only if i use the qformlayout add the row of the qcombox,the qocombox selection part became the dark color.
If i used the qvboxlayout something else,the qcombox became normally. -
Was that a bug ?
Only if i use the qformlayout add the row of the qcombox,the qocombox selection part became the dark color.
If i used the qvboxlayout something else,the qcombox became normally.@nicker-player
I know why the background is dark color.
Cause I used the
{background:transparent;}
qstyle code.How to prevent the parent widget influenced the child qcombobox by using the code "background:transparent;"
By using the code QComboBox{background-color:white;} seemed unuseful.