Questions tagged [model-view]

model-view describes the relationship between the model and the view when using model-view-controller

Model-view-controller is an architecture to separate the model (data) and the view (interface). The model contains the information for a program while the view is the interface with the user. The controller is used to update the model from user input and to update the view when the model changes.

259 questions
0
votes
1 answer

QT Model/View like Log Viewer

I have a Monitoring program which runs another long process (can take days). The process generates huge amount of log information. This log information cant be stored in memory so I am redirecting it into log file. The problem is than Monitoring…
ArmanHunanyan
  • 905
  • 3
  • 11
  • 24
0
votes
1 answer

How to show a sub-tree-item in Qt?

Using Qt's model-view framework to represent a tree structure, such as Qt provided simple tree example, the tree view shows the root-tree-item. Any way to show a sub-tree-item, such as a child item of the root?
user2052376
  • 117
  • 1
  • 6
0
votes
2 answers

Model View referring to null reference

I have a view page with multiple models and i am having trouble getting the data to display but i could save any added data just fine. It is just displaying the data on page load tells me that the model i am passing in passes a null reference. Main…
BB987
  • 181
  • 3
  • 14
0
votes
1 answer

gluUnproject returning 0, seems to be related to modelview matrix

I'm working on a 2D image viewer, I want to retrieve openGL mouse position on texture but I can't get it to work if glTranslatef() or glScalef() calls are made on the modelview matrix. I'm using a QGLWidget , of the famous Qt library. Here are the…
Lex
  • 413
  • 1
  • 7
  • 19
0
votes
0 answers

How to edit Qt tree node via dialog?

I build a tree with Qt, double click a node in the tree, a dialog pops up, edit it and then click okay. Will the tree automatically show the changes, such as the changed display (role) name on the node? Or do I need some "repaint" methods to do it?…
user1899020
  • 13,167
  • 21
  • 79
  • 154
0
votes
1 answer

How to implement a tree view like the visual studio solution explorer with Qt?

I want to implement a tree view like the visual studio solution explorer with Qt. The tree is used to represent an external data called "project". I want to use Qt model/view architecture. (1) QTreeView for the view, and the model is derived from…
user1899020
  • 13,167
  • 21
  • 79
  • 154
0
votes
1 answer

Transition of Modal View in ios

Modal view in iOS appears from bottom of the screen to top, and dismisses from top to bottom of the screen. I would like to know, is there any way i can revert the above and make the model view appear from top of the screen to bottom of it. Thus…
footyapps27
  • 3,982
  • 2
  • 25
  • 42
0
votes
1 answer

Does code generator that generates presentation level witn MVVM pattern exists?

Does code generator that generates presentation level with model view view model pattern exists ? I need a generator that will generate code with presentation level for widnows desktop or WPF application all with data binding using MVVM pattern…
Dejo
  • 2,078
  • 3
  • 26
  • 38
0
votes
1 answer

How to assign and access the Name attribute of a WPF checkbox if the checkbox is created dynamically from data?

I have a TreeView and there are multiple layers to the TreeView using HierarchicalDataTemplates. Each TreeViewItem currently displays the "name" of the object that it represents. I now need to add CheckBoxes to the children of the tree which I have…
Kevin Quiring
  • 639
  • 1
  • 11
  • 26
0
votes
1 answer

How to set the different QLineEdit Text in a TableView

I have 3 QLineEdits (say Name, Address & Phone No.), a QPushButton (Add button) and a QTableView. When I have entered text in all the QLineEdits, and if I click the Add button, all 3 texts of the QLineEdits should be added in the first row of the…
New Moon
  • 787
  • 6
  • 21
  • 35
0
votes
2 answers

Notify PropertyChanged after object update

I wish to update my listview in an elegant way. This is my code: ObservableCollection tracks = new ObservableCollection(); Track track = new Track(); Tracks.AddRange(track); // collection add a track, and list view updates…
0
votes
1 answer

Trouble getting `QWidget* editor` for a `QModelIndex`

I am having trouble augmenting the default edit behavior of QTableView. I want the following behavior when the Enter key is pressed: Start editing the current cell if it is not already being edited. If the cell is being edited, 2a. commit the data…
wsaleem
  • 594
  • 8
  • 25
0
votes
1 answer

How to add One modelAndView object to another ModelAndView object

How to add one modelAndView object to another ModelAndView object. Like i have one ModelAndView object mv1 and i want another modelandview object mv2 value to be added to mv1.can i use mv1.addObject("mv1",mv2);
Salu Kumar Sahoo
  • 11
  • 1
  • 1
  • 5
0
votes
1 answer

Beginning Qt Model / View with Nested Object Collections

I'm primarily a .Net developer and have been investigating Qt for a while now. I'm now at the stage of trying to implement the model / view framework in Qt. I think I have a grasp of the basic principles but am unclear of how to hang things…
RobertW
  • 103
  • 1
  • 1
  • 13
0
votes
1 answer

backbone view listens to model event

I'm having problem with backbone view-model communication, view should be listening events from model, so function couponReader is supposed to get the data from model and add to the cart after a sort of confirmation. Any help is…
nihulus
  • 1,475
  • 4
  • 24
  • 46
1 2 3
17
18