Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我在做一個定製的本地文件管理器,由 QFileSystemModel 驅動,由 QTreeView/QListView 分別顯示目錄樹結構和目錄內容。
我希望用戶能用右鍵菜單給 QTreeView/QListView 中的文件夾改名。就像Windows的「文件資源管理器」一樣。
我該如何著手?整個改名流程是什麽樣的?比如我需要修改某些 role 或 option 或 flag 或其他什麽東西?或需要新建一個對話框?