Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]what signal to capture in order to sync filename
Qt 6.11 is out! See what's new in the release blog

[SOLVED]what signal to capture in order to sync filename

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    phamtv
    wrote on last edited by
    #1

    I have an editor with a treeview populated using the QFileSystemModel. The user is allowed to change the filename via the treeview. What signal would I have to connect to so that I can update the file (editor) tab text as well?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      May be this signal can help you
      @void QFileSystemModel::fileRenamed ( const QString & path, const QString & oldName, const QString & newName ) [signal]
      @

      bq. This signal is emitted whenever a file with the oldName is successfully renamed to newName. The file is located in in the directory path.

      --
      Vasiliy

      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