Change Behavior of Double Click for QFileDialog

  • I've created a custom file dialog class which will traverse sub-directories to a specified depth. Downward traversal is effected via double clicks and file selection is via the Choose button. Presently, I turn off double clicks by using setDoubleClickInterval(0) when the deepest sub-directory is reached. However, I'd like to change the double-click behavior to the same as the Choose button at the deepest sub-directory. Any ideas? I've yet to code any specialized QEvent handling.

  • I figured it out. You can't call the connect statement for the doubleClick signal until the QListView is in scope.

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