Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Item Styling

QML Item Styling

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 728 Views
  • 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 Offline
    V Offline
    vityafx
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved