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. Background color for TreeView

Background color for TreeView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 445 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    GrahamLa
    wrote on last edited by
    #1

    Hi
    I want to set a background colour for my tree view but cannot find a way.
    Say I have the following

    Rectangle {
        width: 800
        height: 800
        anchors.fill: parent
    
        TreeView {
            id: view
            model: theModel
    }
    

    What do I need to set a background color?
    Setting a color on the parent does not work and I cannot see how to use TreeViewStyle to do this.

    Can anyone please help?

    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