Alundra
22nd January 2015, 00:17
Hi,
I have a QListView with QFileSystemModel using icon mode and I create a folder and edit the added folder directly when created.
That launch correctly the edit function on the QListView item but the folder is not on the good place (sorted), and at the end of edit that's not sorted too.
If I only create the folder, the view is refreshed correctly and the folder is on the good place (sorted).
How have the correct behavior working ?
Here the code actually used :
if( QDir( Path ).mkdir( FolderName ) )
m_DetailList->edit( Model->index( Path + '/' + FolderName ) );
Thanks for the help
I have a QListView with QFileSystemModel using icon mode and I create a folder and edit the added folder directly when created.
That launch correctly the edit function on the QListView item but the folder is not on the good place (sorted), and at the end of edit that's not sorted too.
If I only create the folder, the view is refreshed correctly and the folder is on the good place (sorted).
How have the correct behavior working ?
Here the code actually used :
if( QDir( Path ).mkdir( FolderName ) )
m_DetailList->edit( Model->index( Path + '/' + FolderName ) );
Thanks for the help