Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QML Item Styling

    QML and Qt Quick
    1
    1
    643
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vityafx last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post