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. [SOLVED] Click event on Surface Pro 2

[SOLVED] Click event on Surface Pro 2

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.9k 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.
  • Z Offline
    Z Offline
    zhanisch
    wrote on last edited by
    #1

    Hi!

    I have a problem with Qt 5.1.1 on Surface Pro 2.

    I created a simple project (Web browser using QWebView) to test Qt 5 on Surface Pro 2.
    Some component e.g. scroll bar can't detect the touch event. Using mouse everything is working fine.

    QtCreator has the same problem. When I want to open the form designer, Qt Creator doesn't react to "double click" event (double touching) unless I use double click with mouse.

    Other built-in applications are working well so I suspect that there is a compatibility problem with the touchscreen events / driver.

    Any suggestion are welcomed.

    Many thanks,
    Zoltan

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhanisch
      wrote on last edited by
      #2

      I double checked and a simple form with a button is working. I suspect that the webview needs opengl support, but the Surface Pro 2 doesn't have it. I am going on.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zhanisch
        wrote on last edited by
        #3

        Solved:
        I had to set an attribute of the QWebView:
        ui->webView->setAttribute(Qt::WA_AcceptTouchEvents, false);

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Thegreger
          wrote on last edited by
          #4

          Any solution for the Qt Creator issue, though? I often use my convertible in tablet mode while just browsing code, or presenting things to my coworkers. As of now, that's impossible in Qt Creator since I can't double-click on any source file to open it.

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            Hi,

            I'm afraid that don't know of any workarounds, but if you don't get any response within a few days, you can file a report at https://bugreports.qt-project.org

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            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