Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.2.1
-
None
-
Qt 5.2.1 and latest stable branch on Mar 8
Mac OS 10.9.1 on Retina display
Description
Attached screenshot of youtubeview example
Sample code:
void QuickHelper::grabItem(QQuickItem *item, const QString &filename) { QQuickWindow *w = window(); QImage img = w->grabWindow(); while (img.width() * img.height() == 0) img = w->grabWindow(); QQuickItem *rootItem = w->contentItem(); QRectF rectf = rootItem->mapRectFromItem(item, QRectF(0, 0, item->width(), item->height())); QDir docsDir = QDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); pwd.mkdir("output"); img.save(docsDir.absolutePath()+"/output/" + filename); emit imageSaved(item, docsDir.absolutePath()+"/output/" + filename); }
Attachments
Issue Links
- is replaced by
-
QTBUG-35962 QQuickView::grabWindow() does not work on Mac with Retina Displays?
- Closed