Wait a minute...
textItem->textCursor().insertImage(imageScaled);
textItem->setScale(3);
textItem->textCursor().insertImage(imageScaled);
textItem->setScale(3);
To copy to clipboard, switch view to plain text mode
No wonder you get poor quality!
You put your DOWN scaled image, and scale it up x3 !!
You should do it so:
QImage image
(dir.
absoluteFilePath("tex.png"));
QImage imageScaled
= image.
scaledToHeight(30, Qt
::SmoothTransformation);
textItem->setScale(3);
textItem->textCursor().insertImage(imageScaled);
QImage image(dir.absoluteFilePath("tex.png"));
QImage imageScaled = image.scaledToHeight(30, Qt::SmoothTransformation);
textItem->setScale(3);
textItem->textCursor().insertImage(imageScaled);
To copy to clipboard, switch view to plain text mode
You have to scale DOWN your LARGE image not UP the SMALL image!
Bookmarks