How to add line number for TableView?
-
Keep fixed when you want to drag horizontally
import QtQuick 2.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 1.2 Item { id: root ListModel { id: libraryModel ListElement { title: "A Masterpiece" author: "Gabriel" } ListElement { title: "Brilliance" author: "Jens" } ListElement { title: "Outstanding" author: "Frederik" } } TableView { width: parent.width height: parent.height TableViewColumn { role: "title" title: "Title" width: 100 } TableViewColumn { role: "author" title: "Author" width: 200 } model: libraryModel } }
Thanks!
-
-
@Markkyboy Thanks.