Results 1 to 10 of 10

Thread: QStandardItemModel save/load Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QStandardItemModel save/load Problem

    Quote Originally Posted by sun View Post
    How to implement the myItem &operator<< and the myModel &operator<<, so that i save my Attributs and also save the QstandardItem (model) attributes?
    Overload the << operator and call the QStandardItem implementation inside.

  2. #2
    Join Date
    Sep 2008
    Posts
    17
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default Re: QStandardItemModel save/load Problem

    I'm trying to do that but have no luck.
    I'm not allowed to cast the myItem to QStandardItem (because is is const?) and dont know how to call the Operator otherwise.
    Coming from Java I have some Problems here.

    Will now search the Internet and report if I have any luck.
    Any help on howto do this is still appreciated!

  3. #3
    Join Date
    Sep 2008
    Posts
    17
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default Re: QStandardItemModel save/load Problem

    still no luck!

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  2. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  3. Replies: 16
    Last Post: 7th March 2006, 16:57

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.