Hi,
I have created a QTreeView with my implementation of sort/filter model and QStandardItemModel. I have enabled sorting on the QTreeview and sorting the view using sortByColumn().
But, if there is any expanded row in the view, sorting a column collapses all the expanded rows and sorts the view. Although, view is correctly sorted, but I want to have expanded rows state maintained.
Am I missing something in the implementation?




							
						
    
    
    
    
    
  
    
    
    
    
    
  
				
				
				
					
  Reply With Quote
			
Bookmarks