Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 如何給基於 QFileSystemModel 的 QTreeView/QListView 中的項目改名?
Forum Updated to NodeBB v4.3 + New Features

如何給基於 QFileSystemModel 的 QTreeView/QListView 中的項目改名?

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 431 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JackkkkkJ Offline
    JackkkkkJ Offline
    Jackkkkk
    wrote on last edited by
    #1

    我在做一個定製的本地文件管理器,由 QFileSystemModel 驅動,由 QTreeView/QListView 分別顯示目錄樹結構和目錄內容。

    我希望用戶能用右鍵菜單給 QTreeView/QListView 中的文件夾改名。就像Windows的「文件資源管理器」一樣。

    我該如何著手?整個改名流程是什麽樣的?比如我需要修改某些 role 或 option 或 flag 或其他什麽東西?或需要新建一個對話框?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved