Did you try inserting the character by hand? Does it get rendered as you want? Not that QTextEdit would support all of them, but I suppose that shortcut is not even listed in the list of standard shortcuts. I guess you could map a set of custom shortcuts even without subclassing QTextEdit like this:
mapper
->setMapping
(shortcut,
QChar(0x09
));
connect(shortcut, SIGNAL(activated()), mapper, SLOT(map()));
connect(mapper,
SIGNAL(mapped
(QString)), textEdit,
SLOT(insertPlainText
(QString)));
QSignalMapper* mapper = new QSignalMapper(textEdit);
QShortcut* shortcut = new QShortcut(QKeySequence("Ctrl+L"), textEdit);
mapper->setMapping(shortcut, QChar(0x09));
connect(shortcut, SIGNAL(activated()), mapper, SLOT(map()));
connect(mapper, SIGNAL(mapped(QString)), textEdit, SLOT(insertPlainText(QString)));
To copy to clipboard, switch view to plain text mode
Bookmarks