Hi all,
When I click a button on my QML scene, i need to hide a specific item, then call a C++ method to take a screenshot, and then show back my Item.
onClicked: {
MyItem.visible = false;
FromCplusplus.TakeScreenShot();
MyItem.visible = true;
}
Unfortunately, the screenshot is taken before my Item is effectively hidden.
How can I force redraw or wait for the Item redraw before calling my C++ method ?
regards
↧