TreeView
-
Hi,
I have a TreeView of files, as follows:
folder_path: -> file_1.txt -> file_2.txt -> file_10.txt -> file_20.txt
When I run the application of Qt from a docker container, it somewhat reads the files in a different order, and shows them in the TreeView as:
folder_path: -> file_1.txt -> file_10.txt -> file_2.txt -> file_20.txt
Because 1 comes before 2. It's sorting it alphabetically, not arithmetically.
How do I sort the files in the model?
Thanks
-
Hi,
I have a TreeView of files, as follows:
folder_path: -> file_1.txt -> file_2.txt -> file_10.txt -> file_20.txt
When I run the application of Qt from a docker container, it somewhat reads the files in a different order, and shows them in the TreeView as:
folder_path: -> file_1.txt -> file_10.txt -> file_2.txt -> file_20.txt
Because 1 comes before 2. It's sorting it alphabetically, not arithmetically.
How do I sort the files in the model?
Thanks
-
@Christian-Ehrlicher Thank you Chrisitan! I will look at it.
thanks