Quote Originally Posted by jpn View Post
Qt Code:
  1. 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?


Qt Code:
  1. QGraphicsTextItem* txtarea = new QGraphicsTextItem(0,scene);
  2. txtarea->setHtml(qthtml);
  3. txtarea->setOpenExternalLinks(true); /* set clickable */
  4. ////txtarea->setTextInteractionFlags(Qt::TextEditorInteraction);
  5. txtarea->setTextInteractionFlags(Qt::TextBrowserInteraction);
  6. txtarea->setFlag(QGraphicsItem::ItemIsMovable);
  7. txtarea->ensureVisible(QRectF(10,10,200,200),80,80);
  8. txtarea->moveBy(100,200);
To copy to clipboard, switch view to plain text mode