Unsolved TableView sort indicator not show
-
Hello All,
I have created one TableView in the qml with the following code:
TableView { id: propertiesTable anchors.top: parent.top anchors.bottom: parent.bottom model: XConfigObj.propertiesModel width:parent.width sortIndicatorVisible: true TableViewColumn { id: propertiesColumnName role: "name" title: "Name" elideMode: Text.ElideRight width: 200 } TableViewColumn { id: propertiesColumnValue role: "value" title: "Value" width: 200 ...
I have set the visibility of the indicator to true but I it is not displayed on my table:
Is there anything else that I should set?
Best Regards
-
I am experiencing the same problem. Is there a resolution?
-
Seems to be a known problem still https://bugreports.qt.io/browse/QTBUG-54355 using QApplication instead of QGuiApplication works. And this may be better in the TableView for Qt Quick Controls 2 coming in 5.12.
-
Thank you. That was the solution. When creating a default CMake project in Qt Creator it creates main using QGuiApplication instead of QApplication. Seems like the incorrect default if some of the Quick Controls 1 GUI elements, like TableView, rely on QWidgets.