Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.4.0 Alpha
-
-
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
For Gerrit Dashboard: QTBUG-41433 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
102329,13 | Add a platform function to enable setting the touch flags on Windows | dev | qt/qtbase | Status: MERGED | +2 | 0 |
308347,3 | Windows QPA: Move the touch types API from platformheaders into QtGui | dev | qt/qtbase | Status: MERGED | +2 | 0 |
308368,3 | Manual touch test: Add a settings dialog for windows | dev | qt/qtbase | Status: MERGED | +2 | 0 |