qt怎么让textedit只读
2个回答
展开全部
readOnly : bool
This property holds whether the text edit is read-only.
In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible.
This property's default is false.
Access functions:
bool isReadOnly () const
void setReadOnly ( bool ro )
你直接调用textedit 的 setReadOnly (true)就行了
This property holds whether the text edit is read-only.
In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible.
This property's default is false.
Access functions:
bool isReadOnly () const
void setReadOnly ( bool ro )
你直接调用textedit 的 setReadOnly (true)就行了
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询