change color and position scrollview in tableview
-
Hi guys good time
I want to change the color , And I want to scroll to the left or right or up What should I do ?
thanksTableView { id : tbl width: win.width height: win.height TableViewColumn { role: "title" title: "Title" width: 100 } TableViewColumn { role: "author" title: "Author" width: 200 } model: "1000" }
-
For the color, you can customize the look by overriding the itemDelegate, rowDelegate, or headerDelegate properties, or you can create a custom appearance for a TableView by assigning a TableViewStyle. For the scrolling, if I'm not mistaken a TableView automatically adds scrollbars when required, so just make it small enough that the data won't fit in the viewable area, and you should get scrollbars.
-
@MrErfan Regarding the issue with color, this is for a ListView, but the same principle should apply: https://wiki.qt.io/How_To_Use_QML_ListView
As for the custom scroll, what is the exact problem? The scrollbars should appear if they're needed.