N
N
Nikita Lubchich2013-11-18 12:54:24
Qt
Nikita Lubchich, 2013-11-18 12:54:24

How can I limit the number of lines to 1 in a QTextEdit?

How can I limit the number of lines to 1 in a QTextEdit (or what component should I use to allow this)? I feel that the mana is not fully lit, but still.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dkoryagin, 2013-11-18
@Cybran

As an option - inherit from it, disable wordwrap, remove scrollbars and catch pressing the Enter key to ignore it.
upd:
this is what I thought:
http://qt-project.org/faq/answer/how_can_i_create_a_one-line_qtextedit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question