QT Stylesheet Textedit cant use Readonly

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

QT Stylesheet Textedit cant use Readonly

Post by kilianvp »

i wanna change the attributes of a textfield/multiline textfield where the text is set as readOnly

according to QT Online help it should be posible to use

Code: Select all

QTextEdit[readOnly="true"]
{

}
However this wont work at all.

schneebergera
Posts:89
Joined: Sun Apr 03, 2016 5:52 pm

Re: QT Stylesheet Textedit cant use Readonly

Post by schneebergera »

as I tested the code in my project, the style onto the textbox is working fine.
Take care that the property for the textbox is set (readOnly = TRUE).
Please reload the stylesheet to see the effect.

Code: Select all

QTextEdit[readOnly="true"]
{
  background: blue;
}

2 posts • Page 1 of 1