Is there any way to apply integer and real validator to QTextEdit widget ?
I have tried but i am not able to apply the QIntValidator to QTextEdit. For that i have to use QLineEdit.
Is there anyway i can apply integer and real validator in QTextEdit ?
Ah, sorry, I misread and confused TEXT edit with LINE edit.
I don't get the use case, though. The text edit widget is designed for multi-line, probably rich, text, whereas an integer or real number is only one line and would best fit into a line edit...
I guess your problem is that QTextedit does not have a setValidator method.
Why that is the case? Volker has given the answer. Multi-line may make it time consuming.