vladest
13th November 2010, 17: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
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