You are not logged in.

1

Tuesday, April 10th 2012, 5:00pm

mvc and qt different approach

hello.
I wish implement an mvc pattern in my application.
I see from google that there are two distinct approach :
1)a model and a view for each category of subjects
2)a model and a view for all category of subject
I have a little experience in symfony 2 in php and i see another division:
1)a controller that replies to the view ,takes data from model and next resend data to the view
2)a controller that replies to the view and the model send himself to the view with an observer pattern.

I'm creating the interface for a 3d opengl civil structural project and i wish choose a mvc model for my application.
i wish also know the difference that can break my design because i have no real experience in MVC.

thanks.

2

Tuesday, April 10th 2012, 5:33pm

mvc is really a pseudo pattern. whether 1 or 2 is better or worse is too subjective. It depends on how you implement either and the intricacies of your app as to which will be 'better'.

This is a Qt forum - if you want to discuss the finer points of M/V, then you have come to the wrong place. If you want to use M/V then there are already available gui and framework in Qt - help yourself :)
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar threads