Originally Posted by
jpn
txtarea->setTextInteractionFlags(Qt::LinksAccessibleByMouse); // | Qt::LinksAccessibleByKeyboard
txtarea->setTextInteractionFlags(Qt::LinksAccessibleByMouse); // | Qt::LinksAccessibleByKeyboard
To copy to clipboard, switch view to plain text mode
OK .. tanks i found ... but is not possibel to make it ItemIsMovable and
Qt::TextBrowserInteraction on same modus? i must split modus to
view edit preview , correct or is this mistake?
txtarea->setHtml(qthtml);
txtarea->setOpenExternalLinks(true); /* set clickable */
////txtarea->setTextInteractionFlags(Qt::TextEditorInteraction);
txtarea->setTextInteractionFlags(Qt::TextBrowserInteraction);
txtarea
->ensureVisible
(QRectF(10,
10,
200,
200),
80,
80);
txtarea->moveBy(100,200);
QGraphicsTextItem* txtarea = new QGraphicsTextItem(0,scene);
txtarea->setHtml(qthtml);
txtarea->setOpenExternalLinks(true); /* set clickable */
////txtarea->setTextInteractionFlags(Qt::TextEditorInteraction);
txtarea->setTextInteractionFlags(Qt::TextBrowserInteraction);
txtarea->setFlag(QGraphicsItem::ItemIsMovable);
txtarea->ensureVisible(QRectF(10,10,200,200),80,80);
txtarea->moveBy(100,200);
To copy to clipboard, switch view to plain text mode
Bookmarks