How to make QML items to grow to fit contents?

前端 未结 3 1129
广开言路
广开言路 2021-01-01 09:37

How to make ServerItem to grow to fit contents? Right now ServerItems just overlap each other.

main.qml

import Qt 4.7
import \"Teeworlds\" as Teeworl         


        
3条回答
  •  离开以前
    2021-01-01 10:07

    You have to set a size explicitly so that two QML elements inside a Row/Column doesn't overlap.

提交回复
热议问题