I have an app and on certain components I change the palette slightly. I do this by putting this code in the Widget Constructor that contains the component.
But when the application loses focus (by going to another application) the colors go back to the original colors. When I select my app again the modifications come back.Qt Code:
if (darkTheme) { ui->strStringEdit->setPalette( p ); }To copy to clipboard, switch view to plain text mode
How do I freeze the palette?
Thanks,
Bookmarks