I'm using Qt to write a database type program where the majority of inputs will be single lines, not documents of arbitrary length.
Do I understand correctly that QPlainTextEdit is the most appropriate widget for this kind of input?
If so, how do you set parameters for this kind of input? In particular:
Height to the right value to comfortably hold one line of text in the current font, instead of stretching to fill available space.
Enter/cursor-down keys move to next control instead of next line in the document.
Take a look at the QLineEdit
class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With