Results 1 to 2 of 2

Thread: Stringlist model plugin in qml

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Stringlist model plugin in qml

    Hi all.

    Actually in qml has Listmodel item, but some customize always attract me. so I 'm now trying write simple list model plugin in qml.
    good begin examples in java2s.com. Because i write a plugin so i replaced main.cpp by a test qml file and add function append(QString string) in stringlistmodel file. My purpose is when click on black button in qml file will be add an item in list view. (list view use stringlistmodel). Unfortunately it could be add data to this model, but could not display any item on ListView.
    I attach my example here. any one could help my to solve this problem.
    Thank in advance!
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Stringlist model plugin in qml

    You are aware there is a QStringListModel class, right?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 9
    Last Post: 14th February 2013, 19:39
  2. Replies: 1
    Last Post: 8th October 2010, 11:38
  3. Plugin and shared class between plugin and application
    By wishper in forum Qt Programming
    Replies: 7
    Last Post: 23rd August 2010, 17:00
  4. Aligning a stringlist
    By impeteperry in forum Qt Programming
    Replies: 1
    Last Post: 22nd May 2006, 17:45
  5. Sorting a StringList
    By Jimmy2775 in forum Qt Programming
    Replies: 4
    Last Post: 10th February 2006, 22:11

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.