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
QtWS: Super Early Bird Tickets Available!

Change Behavior of Double Click for QFileDialog

Scheduled Pinned Locked Moved Solved General and Desktop
qt4qfiledialogqeventdoubleclickc++
2 Posts 1 Posters 1.7k 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.
  • D Offline
    D Offline
    DougyDrumz
    wrote on 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 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

  • Login

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