Hello all,
How do I reset the palette for a form, or get it to use the current Windows/KDE colours?
Cheers,
Donal
Hello all,
How do I reset the palette for a form, or get it to use the current Windows/KDE colours?
Cheers,
Donal
Click on the small red arrow besides "Change Palette" button to reset it.
donmorr (10th August 2006)
If you do it in code try this:
1. create a temporary control
2. get its palette
3. set the palette of the temp. control as the palette of your control
This should also work for forms.
Here's a small code excerpt which shows how to set the default palette for a QTreeView:
Qt Code:
QTreeView t; // a temp. control myTreeView->setPalette(t.palette());To copy to clipboard, switch view to plain text mode
Ernst
Or simply (for standard Qt widgets):Originally Posted by 3dch
Qt Code:
To copy to clipboard, switch view to plain text mode
Last edited by jacek; 12th August 2006 at 12:19.
Bookmarks