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. Change Behavior of Double Click for QFileDialog
Forum Updated to NodeBB v4.3 + New Features

Change Behavior of Double Click for QFileDialog

Scheduled Pinned Locked Moved Solved General and Desktop
qt4qfiledialogqeventdoubleclickc++
2 Posts 1 Posters 1.8k 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.
  • D Offline
    D Offline
    DougyDrumz
    wrote on 9 Mar 2016, 20:42 last edited by
    #1

    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.

    Dougy Drumz

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DougyDrumz
      wrote on 9 Mar 2016, 22:38 last edited by
      #2

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

      Dougy Drumz

      1 Reply Last reply
      0

      2/2

      9 Mar 2016, 22:38

      • Login

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