sorry if this is suppossed to be obvious, but i only see examples on how to use the QTreeView with QDir. I would like to use the result of a DB-query. Could anyone please point me towards information what my data has to look like? i mean: do i need a column called parent and one called id or how does it work that the Tree knows how to use the data in the model?


 
					
					 
							
						 
    
    
    
    
    
    
   
    
    
       
    
    
    
    
   how to use QTreeView with Database model
 how to use QTreeView with Database model
		 
				
				
				
					 Reply With Quote
  Reply With Quote 
							
								
 
    
    
       
    
    
    
    
   
    
    
       
    
  
Bookmarks