×

Discussion Board

Results 1 to 7 of 7
  1. #1
    jp4symbian
    Guest

    Question Model/View architecture

    Hey folks,

    I am new to Qt for Symbian, though I have been working on it since the past few months.

    I need to develop a Qt application on Symbian having multiple screens/views. I need to retain my data for each view even though its not visible.

    So I want to know whether it is necessary or a good practice to use the Model/View architecture in Qt to develop an application?
    Or just using widgets / windows would also suffice?

    Can anyone please help me out with this?

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Model/View architecture

    An answer to both questions is "yes".

  3. #3
    jp4symbian
    Guest

    Question Re: Model/View architecture

    hey divanov,

    Thanks for the prompt reply.
    Actually I want to persist my data, just the way we do in View classes and destroy containers (controls).
    But I am finding it a bit difficult to understand/implement similar stuff in Qt.

    I cannot keep the widget/window class available just for the data. So I was trying to figure out if Model/View is the way to go or not.
    Havent seen a proper multiview app in Qt on Symbian, so that I can get a complete idea.

    Could you please clear my doubts?

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Model/View architecture

    Good example of MVC pattern implementation in Qt is model/view widgets
    http://doc.trolltech.com/4.6/model-v...ogramming.html

  5. #5
    jp4symbian
    Guest

    Lightbulb Re: Model/View architecture

    Hey,

    Thanks. I am already referring to the help on Model/View programming.

    Was just looking for some pro advice whether this kind of architecture is an absolute necessity or just a better way to do stuff.
    And if it is the norm in Qt like we have the View architecture in Symbian..

  6. #6
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Model/View architecture

    Quote Originally Posted by jp4symbian View Post
    Was just looking for some pro advice whether this kind of architecture is an absolute necessity or just a better way to do stuff.
    This is general architecture question basically not related to Qt. In simple applications you can avoid using MVC, but with sophisticated designs it would be difficult (however not impossible) to implement this design.

  7. #7
    jp4symbian
    Guest

    Re: Model/View architecture

    Quote Originally Posted by divanov View Post
    This is general architecture question basically not related to Qt. In simple applications you can avoid using MVC, but with sophisticated designs it would be difficult (however not impossible) to implement this design.
    Thanks.

Similar Threads

  1. Nokia 6212 Classic has the same architecture as Nokia 6131
    By fs27 in forum General Development Questions
    Replies: 1
    Last Post: 2010-10-12, 09:19
  2. Replies: 0
    Last Post: 2010-02-28, 11:21
  3. Query regarding application architecture.
    By Comp_users in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2010-01-12, 14:35
  4. Traditional Symbian view architecture
    By joelshaf in forum Symbian C++
    Replies: 4
    Last Post: 2007-03-15, 14:38
  5. about view architecture
    By happy_yly in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-04-23, 11:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •