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. Touchscreen failure after double click on file in QFileDialog
Forum Updated to NodeBB v4.3 + New Features

Touchscreen failure after double click on file in QFileDialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 423 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.
  • F Offline
    F Offline
    fatih.erol
    wrote on last edited by
    #1

    Hello.

    I have an application (Qt 5.15.2) which uses QFileDialog::getOpenFileName() to select a file, which works fine with the mouse or keyboard. However, if touchscreen is used for double clicking on a file, it will return the file name correctly, but the application stops responding to touchscreen events afterwards. There is no problem browsing the directories with touchscreen double clicks, but when a file is opened with double click once, this problem happens. The buttons cannot be clicked with touchscreen anymore. It looks like Qt has a wrong state about touchscreen events, so that it will not convert them to mouse click events anymore. Is there a way to recover touchscreen functionality after this happens?

    Or, is there a way to avoid double clicking for files in QFileDialog, while allowing double clicks for directories?

    1 Reply Last reply
    0
    • galuoG Offline
      galuoG Offline
      galuo
      wrote on last edited by
      #2

      I have encountered the same problem. How did you solve it?

      JoeCFDJ 1 Reply Last reply
      0
      • galuoG galuo

        I have encountered the same problem. How did you solve it?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @galuo Qt does have problem on touch screen. One solution could be to add event filter to the widget and handle it by yourself.

        1 Reply Last reply
        0
        • galuoG Offline
          galuoG Offline
          galuo
          wrote on last edited by
          #4

          I bypassed this bug, not use dialog.exec(), but dialog.open()

          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