import QtQuick PopupButton { id: root property string label: "" property string kind: "normal" property real buttonWidth: 0 text: label role: kind width: buttonWidth > 0 ? buttonWidth : Math.max(1, parent ? (parent.width - 8) / 2 : 160) }