[Qt-interest] will setStyleSheet() to cause a QWdiget allways on top?
James Yan
james.pizza at gmail.com
Sat Apr 30 10:07:31 CEST 2011
Hey All,
I've two QWidget A & B, then i make A stylish with setStyleSheet, and hope to put B on A.(i.e. to take A as background of B).
the code looks like this:
===
A = new QWidget(this);
A->setStyleSheet("...background-color: qlineargradient(...");
B = new QWidget(this);
A->resize(...);
A->move(...);
B->resize(...);
B->move(..);
==
But the result shows : A will be always on top of B, even i try to use B->raise() and A->lower(), is it a bug or something? any hint or other suggestions? so far, i think the setStyleSheet is really a great feature, but sometimes it be a little bit wired as compared to normal widget. :(
regards,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110430/d7fa829e/attachment.html
More information about the Qt-interest-old
mailing list