Results 1 to 6 of 6

Thread: MVC question

Hybrid 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 Re: MVC question

    Hi,

    Have I to create a Model for every "myClass" instance and change the model of the view?

    Thanks,
    Òscar Llarch i Galán

  2. #2
    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 Re: MVC question

    Hi,

    I don't know where to start.
    I have a class "CTool" that have a "QList<CParameter>". Each parameter can store "int", "double" or "QString" depending on its type. The "CTool" objects are created dynamically and also can be deleted.
    I want to create a Model that have two columns, first one "parameter name" and the second one "value".
    When I create a "CTool" object I have also to create a model that represent it, right? Where I create it? Have I to create a "CToolModel" into the "CTool" class?

    I'm reading the docs and don't know how to do this.

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Replies: 0
    Last Post: 31st May 2009, 16:51
  2. Useless but curious compiler warning question
    By Raccoon29 in forum General Programming
    Replies: 4
    Last Post: 30th July 2008, 20:46
  3. SQL Question
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 19:36
  4. 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
  •  
Qt is a trademark of The Qt Company.