svg2qvg needs an application instance in case of SVGs, that are loading fonts

This commit is contained in:
Uwe Rathmann 2018-11-06 09:02:58 +01:00
parent 96ec87a620
commit 539efdff68

View File

@ -15,6 +15,7 @@
#include <QskGraphic.h>
#endif
#include <QGuiApplication>
#include <QSvgRenderer>
#include <QPainter>
#include <QDebug>
@ -32,6 +33,9 @@ int main( int argc, char* argv[] )
return -1;
}
// we need an application object, when the SVG loads fonts
QGuiApplication app( argc, argv );
QSvgRenderer renderer;
if ( !renderer.load( QString( argv[1] ) ) )
return -2;