PDA

View Full Version : Qt Designer 4.0.1 Preview Colors



jtyler
7th February 2006, 18:22
I am using Qt Designer 4.0.1 on Linux, and when I change the background color or the color of pushbuttons, all text subsequently shows up in gray when I preview the form.
To change the colors, I am changing the palette from the Property Editor, and selecting the 3D Effects, and Background colors on the Edit Palette dialog. There seems to be no control there for the Foreground, ButtonText, etc. colors. There also seems to be no way to remove the palette, once I edit one. I am a Qt newbee, so maybe there is an easier way to set the colors.

dragon
9th February 2006, 19:44
If you go to the QT-Designer and click in the property editor on pallete dubbleclick a tunedialog is popping up.
You can change everthing in that dialog coloring the button's, text.
It works for me.

jtyler
14th February 2006, 15:47
A "Change Palette" button appears in the Value column of Property Editor for the palette property. Single clicking this button brings up the "Edit Palette" dialog (Double clicking does nothing different). The "Edit Palette" dialog has 2 color controls: "3-D Effects" and "Background", as well as a Preview pane with a Combo-Box for specifying which palette to preview. There are no other controls for setting any other colors.

I'm using version 4.0.1, and maybe this has changed in version 4.1.

After I set the colors, Designer seems to act like everything is disabled. If I manually edit the RGB values for the text colors in the .ui file for the disabled state, the desired text colors then show up in Designer. This cludge is not a viable solution however.