Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to toggle visibility of a QRect
RobM last edited by RobM
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
setWidthfunctions for this.
QRectis not a visual element.
Can you give us more detail about your code? Especially the UI part.