[Kexi] Re: Color on forms

Jaroslaw Staniek staniek at kde.org
Fri Mar 4 21:58:15 CET 2011

On 4 March 2011 21:30, Wayne <iw at ukulele.com> wrote:
> On 03/04/2011 10:09 AM, Jaroslaw Staniek wrote:
>> Style sheets are the current replacement, e.g. by writing:
>> background-color:red
> What other style sheets are there?

Hi Wayne,
Extensive document exists on it, applicable in our case since we're
re-using the Qt style sheets:

[1] http://doc.trolltech.com/4.7/stylesheet.html

If you start Qt Designer you can play with the styles (first some test
form should be created, no programming needed).

Kexi does not use or reuse any style sheets editor (Qt Designer has
one) for now, so entering the style definition (semicolon-separated)
is the only option.

> Is there one to
> color the form's background instead of the background
> inside the text boxes?

Unfortunately not but this is a bug we discovered in this thread by
the way (feel free to report!).

As the document [1] explains you can specify e.g.:

   QPushButton { background-color:red }

to colorize only background of the push buttons or your form.
There's a lot more options like that but I agree that's for power users.

regards / pozdrawiam, Jaroslaw Staniek
 Kexi & Calligra (kexi-project.org, identi.ca/kexi, calligra-suite.org)
 KDE Software Development Platform on MS Windows (windows.kde.org)

More information about the Kexi mailing list