using the raster paint engine for the SVGs
This commit is contained in:
parent
e5c2bd893b
commit
718ae556ab
@ -14,6 +14,19 @@ int main( int argc, char** argv )
|
|||||||
SkinFactory skinFactory;
|
SkinFactory skinFactory;
|
||||||
Qsk::registerSkinFactory( "SampleSkinFactory", &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" );
|
qskSetup->setSkin( "DefaultSkin" );
|
||||||
|
|
||||||
SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | SkinnyShortcut::Quit );
|
SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | SkinnyShortcut::Quit );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user