QML Item Styling



  • Is it possible to override only one property of style, for example, combobox?

    @ComboBox {
    id: comboBox

        anchors.fill: parent
    
        style: ComboBoxStyle {
            label: Component {
               Text {
                    text: "Players -> " + comboBox.currentText
                }
            }
        }
    }@
    

    In KDE this combobox looks ugly because it does not use kde theme style and uses default's one.

    ComboBox with overriden styles and without style override:
    !http://i.stack.imgur.com/7Ba0X.jpg(comboboxes)!

    I need to have a combobox styled like last one on this image but with custom text.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.