table right to left

29 views
Skip to first unread message

mohammadreza hoseynean

unread,
Dec 1, 2015, 5:41:37 AM12/1/15
to go-qml


hello
I want my table right to left . 
This is my table.


I want to be like this.

my code:

  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.2
  3. import QtQml.Models 2.1
  4.  
  5. Rectangle {
  6. id: root
  7. width: 205
  8. anchors.right: parent.right
  9. TableView {
  10. id: tableROList
  11. TableViewColumn{ role: "name" ; title: "نام" ; width: 100 }
  12. TableViewColumn{ role: "lastname" ; title: "نام خانوادگی" ; width: 100 }
  13. model: modelROList
  14. width: root.width
  15. }
  16. ListModel {
  17. id: modelROList
  18. ListElement{ name: "اسم اول" ; lastname: "فاملی اول" }
  19. ListElement{ name: "اسم دوم" ; lastname: "فامیلی دوم" }
  20. ListElement{ name: "اسم سوم" ; lastname: "فامیلی سوم" }
  21. }
  22. }


Thank you

Reply all
Reply to author
Forward
0 new messages