Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, October 2007
Qt Style Sheets and a QSplitter from a QDockWidget


Message 1 in thread

Hi there,

I dock a QDockWidget on the left side of my QMainWindow. Between the
dock widget an my central widget appearers a QSplitter (right?). But
when I try to customize this splitter via a style sheet, I fail. The
style sheet is set properly for the whole application but following
line takes no affect:

QSplitter {
  background: #0000FF;
}

Why? Changing the whole background via "*{background: #0000FF;}" it
changes its color. I am using 4.3.2.


Thanks

Lykurg

--
 [ signature omitted ] 

Message 2 in thread

Lykurg Nomothet wrote:
> Hi there,
> 
> I dock a QDockWidget on the left side of my QMainWindow. Between the
> dock widget an my central widget appearers a QSplitter (right?). 

It is not a QSplitter, it is separator drawn by the main window.

> style sheet is set properly for the whole application but following
> line takes no affect:
> 

Styling the separator is not supported in Qt 4.3. What you need is,
QMainWindow::separator { background: red; }

See
http://doc.trolltech.com/main-snapshot/stylesheet-examples.html#customizing-qmainwindow

You need to wait for 4.4 or use the snapshots for this feature.

Girish

--
 [ signature omitted ] 

Message 3 in thread

> > I dock a QDockWidget on the left side of my QMainWindow. Between the
> > dock widget an my central widget appearers a QSplitter (right?).
>
> It is not a QSplitter, it is separator drawn by the main window.

Ah, ok.

> Styling the separator is not supported in Qt 4.3. What you need is,
> QMainWindow::separator { background: red; }
>
> See
> http://doc.trolltech.com/main-snapshot/stylesheet-examples.html#customizing-qmainwindow
>
> You need to wait for 4.4 or use the snapshots for this feature.

Because this is the second time, you told me to wait for 4.4, when can
I hope that 4.4 is released?



Thanks for your help

Lykurg

--
 [ signature omitted ] 

Message 4 in thread

Lykurg Nomothet wrote:
> Because this is the second time, you told me to wait for 4.4, when can
> I hope that 4.4 is released?
> 

It is expected end of first quarter next year.

Girish

--
 [ signature omitted ]