Status Weekly Roundup: Desktop UI team. We use various tools in our daily work with Qt.

26 Sep 2023, 15:43
Status Weekly Roundup: Desktop UI team We use various tools in our daily work with Qt. In addition to the standard well-known tools, there are also some tools that we have made ourselves. Some are quite complex, e.g. Storybook. Other tools we have created are very simple but nevertheless very practical. An example of such a tool is the Tracer component. Wherever it is added, it automatically adds a frame around the parent component. This is often enough to verify the size and position of the component. The most basic implementation of Tracer might look like this: Rectangle { z: 1000 border.color: 'red' color: 'transparent' anchors.fill: parent } This basic implementation works fine with most standard components. Problems only arise when we try to use it inside a layout (e.g. Flow, Row, RowLayout) because the layout will try to manage the size and position of our Tracer. To avoid this, we use a little trick when Tracer is defined inside the layout. It involves transferring Tracer to the Overlay component. Inside Overlay, we periodically update the size and position so that it is above the layout component. The full implementation can be found on our GitHub: Thanks to this, Tracer fulfils its role regardless of what component it is defined in! #EthStatusProgress