[Qt-interest] Make a few lines of a QTextEdit uneditable?
Ender EREL
erelender at yahoo.com
Tue May 26 13:43:01 CEST 2009
You can connect a slot to the textChanged() signal of your QTextEdit,
and in that slot, you can compare the new text with the previous text (i
think you have to manually store the old text) and revert any changes
that you don't want to allow.
I don't know if there is a more elegant way to achieve this. I also
think that this method may cause a little slowness while typing.
--
Ender EREL
More information about the Qt-interest-old
mailing list