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

  • 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?

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.