PDA

View Full Version : qtextedit with offset



Michael_Levin
28th August 2012, 13:22
Hi!
How can i create a QTextEdit with some unremoveable offset? (please see the pic included). At the beginning of the browser should be some unremoveable label, and the cursor can't move left.

clebail
6th September 2012, 11:04
For a QLineEdit you can use the stylesheet property


QLineEdit lineEdit();
lineEdit.setStyleSheet("padding-left: 20px");


But for an QTextEdit, y don't know, maybe with another stylesheet.