简体   繁体   中英

Qt “Copy/Paste/Cut”

Well, i'm doing a Text Editor, basically where you write the text is a "QPlainTextEdit" i'm having issues, i'm trying to do in "Edit" Menu, an option to Copy/Paste/Cut.

With Copy i meant, you select the text in the Editor, open Edit Menu, Click Copy and sends that to Clipboard. Paste, pastes what you copied? Cut, cuts the selected text.

QTextEdit has slots copy , paste and cut . So, You need just connect Your signals with these slots and You will have Cc\Cv functionality. You can do that in QDesigner without coding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM