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>
|
||||
#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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user