QLineEdit Rounded Corners?

Viewed 6869

Is there a way to round the corners of a QLineEdit widget? If not is there a similar widget I could do this to?

Visual Meaning:

enter image description here

Solved: (See below for additional information)

      QLineEdit *lineEdit = new QLineEdit;

      lineEdit -> setStyleSheet("QLineEdit {  border: 2px solid gray;"
                                             "border-radius: 5px;}");
2 Answers
Related