Results 1 to 4 of 4

Thread: MVC question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default MVC question

    Hi,

    I'm trying to create a front-end GUI for my application. It consist on some lists coded in C++ for me. It have list objects that have other lists, ...

    Now I want to create a TreeView to show the data. I'm reading the Qt doc about MVC. I can see that I could create use a delegate to edit the data of the tree, but I don't know how to change my internal data.

    Another question, the method "createEditor" of the delegate could create a widget specific to the data that have to edit? Imagine that I have a treeItem that is an int, other treeItem that is a float, other that is a QString. Could it be possible?

    My internat data structure is changing by user interaction and I want to show the current state. There are items that will be deleted, others that will be created and inserted in it's properly position.

    Thanks,
    Last edited by ^NyAw^; 18th May 2007 at 16:56.
    Òscar Llarch i Galán

Similar Threads

  1. Access to QSqlTableModel::isDirty Question.
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2007, 17:49
  2. Replies: 1
    Last Post: 15th March 2007, 20:45
  3. Variable question
    By MarkoSan in forum General Programming
    Replies: 4
    Last Post: 15th March 2007, 14:59
  4. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34
  5. QThread exit()/quit() question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2006, 14:38

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.