Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41433

Add option for the QPA plugin to set the flags for windows RegisterTouchWindow

    XMLWordPrintable

Details

    • Windows
    • f444b25ac1dfe240b5ae592717907b15d30a5c21

    Description

      • Add command line parameter for the QPA plugin which can be specified in
        qt.conf to define the default flags for windows RegisterTouchWindow(),
        e.g. default = TWF_WANTPALM
      • If the window is already configured as touch window, the flags should
        not be changed anymore by QT

      e.g. pseudo code:

      void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
      {
      // ...
      case Qt::WA_AcceptTouchEvents:
      if (on)
      {
      if ( ::IsTouchWindow( hWnd, NULL ) )
      {
      // Touch input already enabled -> keep flags as they are.
      }
      else
      {
      // Set default flags (specified e.g. through QPA plugin
      command line parameter)
      ::RegisterTouchWindow( hWnd, kDefaultTouchInputFlags );
      }
      }
      // ...
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            kileppal Kimmo Leppälä
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes