Re: TableView (QtQuick 2) with alternating row colors (DelegateChooser)

2020-10-22 Thread Johan Ouwerkerk
On Tue, Oct 13, 2020 at 11:05 AM chiasa.men wrote: > > Thats the example from > https://doc.qt.io/qt-5/qml-qt-labs-qmlmodels-tablemodel.html - Using > DelegateChooser with TableModel > > I wonder how to enable alternating row colors. Usually in all Quick 2 Table > codes Ive seen so far the

TableView (QtQuick 2) with alternating row colors (DelegateChooser)

2020-10-13 Thread chiasa.men
// code import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick 2.12 import QtQuick.Controls 2.5 import Qt.labs.qmlmodels 1.0 ApplicationWindow { width: 400 height: 400 visible: true TableView { anchors.fill: parent columnSpacing: 1 rowSpacing: 1