using the raster paint engine for the SVGs

This commit is contained in:
Uwe Rathmann 2017-07-26 11:56:19 +02:00
parent e5c2bd893b
commit 718ae556ab

View File

@ -14,6 +14,19 @@ int main( int argc, char** argv )
SkinFactory skinFactory;
Qsk::registerSkinFactory( "SampleSkinFactory", &skinFactory );
/*
When going over QPainter for the SVGs we prefer the raster paint
engine, simply showing better results. Interestingly the OpenGL paint
engine was even slower for the use case of non-complex SVGs.
Looks like its tesselation is not much faster than "pixeling"
those images directly.
*/
qskSetup->setControlFlag( QskSetup::PreferRasterForTextures, true );
// Starting with a simple skin made for this example
// CTRL-S allow to rotate through the registered skins and CTRL-T
// changes the colors, when the DefaultSkin is active.
qskSetup->setSkin( "DefaultSkin" );
SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | SkinnyShortcut::Quit );