I have a TableView

Qt Code:
  1. import QtQuick 2.12
  2. import QtQuick.Controls 2.12
  3.  
  4. import credentials 1.0
  5.  
  6. TableView {
  7. id: credentialsTableView
  8. property alias credentialsTableView: credentialsTableView
  9. anchors.fill: parent
  10. columnSpacing: 2
  11. rowSpacing: 2
  12. clip: true
  13.  
  14. model: SqlCredentialsModel{}
  15. delegate: Rectangle {
  16. color: "lightblue"
  17. implicitWidth: lbl_tableCell.width
  18. implicitHeight: lbl_tableCell.height
  19. Label {
  20. id: lbl_tableCell
  21. text: display
  22. }
  23. }
  24. }
To copy to clipboard, switch view to plain text mode 


How can I add column headers?

Code is available in https://github.com/hstig/qt/tree/add...iteCredentials

Thanks