PDA

View Full Version : how to make text clicable in qtextedit



prabhatjha
8th January 2016, 12:51
hey everyone i want to add a print button in QTextedit so please tell me how to add button and how to call slot of that button.

prabhatjha
8th January 2016, 13:00
hey,how r u??
i m working on messaging application.and i have some issues in that.
Actullaly i am using textedit for sending and receving message(for msgboard).for every message i am adding a text frame ,so we can easily distinguish each message.now i want to add a print button on every text frame but from last 20 days i m facing same issues.please help me to come out of this problem.And if this is not possible then give me some ideas to come out of this problem.

Thanks,
prabhat

anda_skoa
8th January 2016, 13:57
I am not sure if this is possible.
Have you considered using a QTextBrowser, adding links and reacting to clicks on these links?

Cheers,
_

ars
8th January 2016, 16:11
Hello,

another way for printing your message: Add the print button (disabled by default) outside of your text edit. When the user has selected a part of text inside the edit, enable the print button and print the frames containing the selected text upon button click.

Best regards
ars