PDA

View Full Version : borders of widgets on QGraphicsScene



vladest
13th November 2010, 18:43
Hi all

I'm trying to create an dialog using some widgets, placed in scene with help of QGraphicsGridLayout
the problem with borders
if I set a style for a widget, for example:

QString borderStyle = QString::fromUtf8("border-radius: 5px; border-color: rgb(255, 255, 255); border-width:2px; background: darkgray;");
QLineEdit *le = new QLineEdit();
le->setStyleSheet(borderStyle);
le->setAttribute(Qt::WA_NoSystemBackground,true);

border not showed
Actually, it seems border doesnot showed in any case, so the question is: how to make borders visible for widgets on QGraphicsScene?

Thanks

vladest
15th November 2010, 13:03
Also checked with qt 4.7.1. same problem - frame does not draws