PDA

View Full Version : QMdiArea and styleSheet



Raccoon29
27th November 2008, 18:11
Hi all,

I searched for it in whole Internet, but I have still that humorous Qt 4 library voice that keeps telling me: "There is no way! There is no way!"
So I look for light here :)

It seems that stylesheets don't handle QMdiArea style yet... sad.
And it can't handle QMdiSubWindow too. Have you ever tried? It's frustrating.
Is there a way to stylize a QMdiArea? Even without the CSS (but it would be better)?

I depend on your illuminating ideas,
greetings

jpn
2nd December 2008, 19:28
There are a couple of pending suggestions:

MDI background image
Suggestion: stylesheet support for QMdiSubWindow

Raccoon29
2nd December 2008, 22:41
There are a couple of pending suggestions:

MDI background image
Suggestion: stylesheet support for QMdiSubWindow

Uhm... it seems that those links are corrupted, or point to unexisting pages...
Are they correct?

jpn
3rd December 2008, 06:51
Uhm... it seems that those links are corrupted, or point to unexisting pages...
Are they correct?
It seems that the task-tracker URL had changed a little bit. It's fixed now thanks to Jacek. :)

Raccoon29
3rd December 2008, 17:25
Oh yes, now it's ok :)

...but it seems that there is no solution at the moment... sad :(
We'll wait for that "some future release" (I fear that it is going to take a looong time...)

In the task tracker those are posted as "suggestions", but I would talk of them as bugs...
Have you ever tried to apply a style to the application like:


QWidget {
background-color: rgb(128,128,30);
color: white;
font-size: 12px;
font-weight: bold;
}

when is implemented a MDI system?
I did and the result is a colorfull application, that has QMdiArea ever gray, everything else olive and (here is the point) the QMdiSubWindow s background transparent! That is you can overlap two windows and you can see both of them... maybe a CSS style could fix, but Qt CSS doesn't support QMdiArea (and "children") style...

What do you think about that?