How to toggle visibility of a QRect
-
Is there a way to toggle the visibility of a
QRectfrom QML? I created one in C++:QRect miniMapRect; ... miniMapRect = QRect(20, int(pThis->height() - 130 - hPart), int(pThis->width() / miniDivisor), hPart);but I am not sure how to go about toggling it's visibility from QML.
I suppose I can just use the
setHeightandsetWidthfunctions for this. -
a
QRectis not a visual element.Can you give us more detail about your code? Especially the UI part.