diff --git a/examples/iot-dashboard/Diagram.cpp b/examples/iot-dashboard/Diagram.cpp index 337e119f..a6ae16ff 100644 --- a/examples/iot-dashboard/Diagram.cpp +++ b/examples/iot-dashboard/Diagram.cpp @@ -24,9 +24,8 @@ namespace auto* textLabel = new QskTextLabel( text, this ); textLabel->setFontRole( QskSkin::TinyFont ); - qreal h = textLabel->preferredSize().height(); - box->setPreferredSize( h, h ); - box->setBoxShapeHint( QskBox::Panel, h / 2 ); + box->setFixedSize( 8, 8 ); + box->setBoxShapeHint( QskBox::Panel, 4 ); } };