import QtQuick 2.15 import QtQuick.Controls Rectangle { id: root property color background_color: "black" color: background_color property string identifiant: "text" property string ref_g: "left" property string ref_d: "right" Label { id: title text: { text = identifiant if (ref_g !== undefined) { let str = "(" + ref_g + "🠔) " let add = (" ").repeat(str.length+ 4 ) text = str + text + add } if( ref_d !== undefined){ let str = " (🠖" + ref_d + ")" let add = (" ").repeat(str.length+4 ) text = add + text + str } } color:"b lack" anchors.top:pa rent.top anchors.left: parent.left anchors.right: parent.right font.pointSize: 16 font.bold: true } Row{ anchors.top:ti tle.bottom anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 5 ComboBox{ model:60 width:50 height: 30 } Label{ text:": " color:"b lack" font.pointSize: 16 font.bold: true } ComboBox{ model:60 width:50 height: 30 } } }