ext()->setContextProperty( "desktop",
app.desktop() );
and then in your qml file e.g. :
Rectangle {
width: desktop.width; height: desktop.height
}
Cheers,
Romain
--
Romain Pokrzywka | romain.pokrzy...@kdab.com | Certified Qt Software Engineer &
Trainer
Klarälvdale
ions, etc.) have 0
hardware acceleration support so far.
It's also worth mentionning that Raster provides no GPU acceleration support.
This would be provided by the OpenGL paint
engine, but that engine suffers so many shortcomings that it rarely proves to
be a worthy replacement. Hopefull
timedia");
> and they do not change a thing. I still have to add the plugin by hand.
>
> Looking at preexisting paths reveals:
> importPathList contains one item
> "C:/iwmake/build_mingw_opensource/imports"
> and pluginPathList also one item :
> "
etSource(QUrl::fromLocalFile(":/qml/main.qml"));
>
> and now it seems to work, but it seems to me this is just a hack. There
> should be a nicer way without full paths and imports in my code.
>
> Regards,
> Cristi
>
> ________