Results 1 to 6 of 6

Thread: QStandardItemModel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QStandardItemModel

    That looks good.
    So you are saying that if you do this
    Qt Code:
    1. GridView {
    2. anchors.fill: parent
    3. model: myXML.newMyModel
    4.  
    5. delegate: Text {
    6. text: "index"
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 
    you are only getting one item in the grid?

    Cheers,
    _

  2. #2
    Join Date
    Jan 2016
    Posts
    81
    Thanks
    31
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QStandardItemModel

    Thank you
    Quote Originally Posted by anda_skoa View Post
    Qt Code:
    1. GridView {
    2. anchors.fill: parent
    3. model: myXML.newMyModel
    4.  
    5. delegate: Text {
    6. text: "index"
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 
    you are only getting one item in the grid?

    _

    Yes

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QStandardItemModel

    Very strange.
    What's the value of the GridView's count property?

    Have you tried with a ListView just to check that you can access all model data?

    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:

    neda (2nd May 2016)

Similar Threads

  1. QStandardItemModel principle
    By bmn in forum Qt Programming
    Replies: 3
    Last Post: 1st March 2016, 20:19
  2. QStandardItemModel and QML listView
    By nilhcraiv in forum Qt Quick
    Replies: 0
    Last Post: 23rd March 2013, 01:42
  3. using QStandardItemModel
    By GrahamLabdon in forum Newbie
    Replies: 1
    Last Post: 6th March 2011, 09:13
  4. QStandardItemModel Help
    By frenk_castle in forum Newbie
    Replies: 1
    Last Post: 16th January 2010, 17:54
  5. QStandardItemModel alignment
    By Pembar in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2009, 16:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.