How I can create the table view having two columns in QML?
-
I want to create a auto scrolling table view with two columns in single row QML. In every row I want to read two lines from Python file in two columns of that row respectively. I want to read two lines every time while iterating through file from python file and update them to two columns from each row under table view . So how I can do this operation. Please let me know how I can do it dynamically in PyQt5 and QML interaction and creating the good looking table view
-
Hi there.
I think you can use TableViewColumn element to create a new column inside a TableView component.
If necessary, you can define your own delegate to set how the data is showed to user.Read more:
http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html#details <- TableView Documentation
http://doc.qt.io/qt-5/qtquickcontrols-tableview-main-qml.html <- TableView Example