diff options
Diffstat (limited to 'examples/desktop/screenshot/screenshot.cpp')
-rw-r--r-- | examples/desktop/screenshot/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/desktop/screenshot/screenshot.cpp b/examples/desktop/screenshot/screenshot.cpp index 7773728daa..66467d439f 100644 --- a/examples/desktop/screenshot/screenshot.cpp +++ b/examples/desktop/screenshot/screenshot.cpp @@ -102,7 +102,7 @@ void Screenshot::saveScreenshot() .arg(format.toUpper()) .arg(format)); if (!fileName.isEmpty()) - originalPixmap.save(fileName, format.toAscii()); + originalPixmap.save(fileName, format.toAscii().constData()); } //! [3] |