PDA

View Full Version : editable Qlabel



salahkimo
23rd January 2016, 03:06
Hi.
Forget my bad english
I want to know how can i make a Qlabel editable .
How to create it in Qdesinger and how can i get qlabel text after editing it
Thank you all for that effort. .

Nirvana
23rd January 2016, 03:40
You can make a flat button and create a line edit widget when clicking it and set the button invisible. Then add the return pressed signal to the line edit so that you can save your text to button.

anda_skoa
23rd January 2016, 10:21
Or you derive a new class from QLabel, implement key handling for editing and use "promote widget" in designer to use your label instead of QLabel.

Cheers,
_