I'm looking for how I should model my model. Basically, the model database contains a bunch of data, which is accessed by a unique name or perhaps ID. The tree view has a set of base items (expandable), which go to a maximum of one level deep.
Now, to set up the model, is there a way to have the functions query the database directly, or do I need to "cache" the database locally in a QList and look at the data that way? (That's my current solution as I'm somewhat at a loss on how to do it another way).


 
					
					 
							
						 
    
    
       
    
    
       
    
    
    
       
    
    
   [QT4]QTreeView, QAbstractItemModel and a MySQL database
 [QT4]QTreeView, QAbstractItemModel and a MySQL database
		 
				
				
				
					 Reply With Quote
  Reply With Quote 
							
								
 
    
    
       
    
    
    
    
   
    
   Originally Posted by KShots
 Originally Posted by KShots
					
				 
    
    
    
       
 
Bookmarks