svg2qvg needs an application instance in case of SVGs, that are loading fonts
This commit is contained in:
parent
96ec87a620
commit
539efdff68
@ -15,6 +15,7 @@
|
|||||||
#include <QskGraphic.h>
|
#include <QskGraphic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <QGuiApplication>
|
||||||
#include <QSvgRenderer>
|
#include <QSvgRenderer>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -32,6 +33,9 @@ int main( int argc, char* argv[] )
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we need an application object, when the SVG loads fonts
|
||||||
|
QGuiApplication app( argc, argv );
|
||||||
|
|
||||||
QSvgRenderer renderer;
|
QSvgRenderer renderer;
|
||||||
if ( !renderer.load( QString( argv[1] ) ) )
|
if ( !renderer.load( QString( argv[1] ) ) )
|
||||||
return -2;
|
return -2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user