From coroberti at gmail.com Wed Nov 4 11:19:01 2026 From: coroberti at gmail.com (coroberti) Date: Wed, 4 Nov 2026 12:19:01 +0200 Subject: [Interest] Qt Apps on Mac Laptop with a Touch Screen Message-ID: Hi, Apple announced their first laptop with a touch screen. Is there any need to update/correct our applications? Is there any support in Qt missed to handle it? Thank you, Kind regards, Robert Iakobashvili ............................ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tor.arne.Vestbo at qt.io Wed Nov 4 11:25:43 2026 From: Tor.arne.Vestbo at qt.io (=?utf-8?B?VG9yIEFybmUgVmVzdGLDuA==?=) Date: Wed, 4 Nov 2026 10:25:43 +0000 Subject: [Interest] Qt Apps on Mac Laptop with a Touch Screen In-Reply-To: References: Message-ID: <2B6F992B-C203-4334-A3AF-75E2B46B2403@qt.io> Hi Robert, macOS will take care of emulating mouse, so most apps should work out of the box. There?s a patch up to add native touch support here: https://codereview.qt-project.org/c/qt/qtbase/+/783930 Though there are still rough edges around Qt that needs to be solved. Cheers, Tor Arne On 4 Nov 2026, at 11:19, coroberti wrote: Hi, Apple announced their first laptop with a touch screen. Is there any need to update/correct our applications? Is there any support in Qt missed to handle it? Thank you, Kind regards, Robert Iakobashvili ............................ _______________________________________________ Interest mailing list Interest at qt-project.org https://lists.qt-project.org/listinfo/interest -------------- next part -------------- An HTML attachment was scrubbed... URL: From coroberti at gmail.com Wed Nov 4 11:50:00 2026 From: coroberti at gmail.com (coroberti) Date: Wed, 4 Nov 2026 12:50:00 +0200 Subject: [Interest] Qt Apps on Mac Laptop with a Touch Screen In-Reply-To: <2B6F992B-C203-4334-A3AF-75E2B46B2403@qt.io> References: <2B6F992B-C203-4334-A3AF-75E2B46B2403@qt.io> Message-ID: On Wed, Nov 4, 2026 at 12:25?PM Tor Arne Vestb? wrote: > Hi Robert, > macOS will take care of emulating mouse, so most apps should work out of > the box. > There?s a patch up to add native touch support here: > https://codereview.qt-project.org/c/qt/qtbase/+/783930 > Though there are still rough edges around Qt that needs to be solved. > Cheers, > Tor Arne > > On 4 Nov 2026, at 11:19, coroberti wrote: > Hi, > Apple announced their first laptop with a touch screen. > Is there any need to update/correct our applications? > Is there any support in Qt missed to handle it? > Thank you, > Kind regards, > Robert Iakobashvili > > Dear Tor Arne, Thank you for your prompt reply and the patch. Is it makes sense to enable for all widgets: Qt::WA_AcceptTouchEvents or Apple-simulated mouse events will work better although not in all cases? Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tor.arne.Vestbo at qt.io Wed Nov 4 11:56:29 2026 From: Tor.arne.Vestbo at qt.io (=?utf-8?B?VG9yIEFybmUgVmVzdGLDuA==?=) Date: Wed, 4 Nov 2026 10:56:29 +0000 Subject: [Interest] Qt Apps on Mac Laptop with a Touch Screen In-Reply-To: References: <2B6F992B-C203-4334-A3AF-75E2B46B2403@qt.io> Message-ID: <9A8CF32A-2851-4C26-9C2C-BBBB44C65226@qt.io> On 4 Nov 2026, at 11:50, coroberti wrote: On Wed, Nov 4, 2026 at 12:25?PM Tor Arne Vestb? > wrote: Hi Robert, macOS will take care of emulating mouse, so most apps should work out of the box. There?s a patch up to add native touch support here: https://codereview.qt-project.org/c/qt/qtbase/+/783930 Though there are still rough edges around Qt that needs to be solved. Cheers, Tor Arne On 4 Nov 2026, at 11:19, coroberti > wrote: Hi, Apple announced their first laptop with a touch screen. Is there any need to update/correct our applications? Is there any support in Qt missed to handle it? Thank you, Kind regards, Robert Iakobashvili Dear Tor Arne, Thank you for your prompt reply and the patch. Is it makes sense to enable for all widgets: Qt::WA_AcceptTouchEvents or Apple-simulated mouse events will work better although not in all cases? I do not recommend enabling Qt::WA_AcceptTouchEvents for all widgets. For one, it enables touch events from trackpads as well, which has a performance impact. Secondly, doing so will disable the OS level emulation of mouse events for that widget, so unless it actually handles touch fully things will break. An example of that is that Qt Widgets does not have touch-based scrolling. Nor does it respond to long-presses to trigger context menus. These are things I?m working on improving. Cheers, Tor Arne -------------- next part -------------- An HTML attachment was scrubbed... URL: From coroberti at gmail.com Wed Nov 4 11:58:39 2026 From: coroberti at gmail.com (coroberti) Date: Wed, 4 Nov 2026 12:58:39 +0200 Subject: [Interest] Qt Apps on Mac Laptop with a Touch Screen In-Reply-To: <9A8CF32A-2851-4C26-9C2C-BBBB44C65226@qt.io> References: <2B6F992B-C203-4334-A3AF-75E2B46B2403@qt.io> <9A8CF32A-2851-4C26-9C2C-BBBB44C65226@qt.io> Message-ID: On Wed, Nov 4, 2026 at 12:56?PM Tor Arne Vestb? wrote: > > > On 4 Nov 2026, at 11:50, coroberti wrote: > > On Wed, Nov 4, 2026 at 12:25?PM Tor Arne Vestb? > wrote: > >> Hi Robert, >> macOS will take care of emulating mouse, so most apps should work out of >> the box. >> There?s a patch up to add native touch support here: >> https://codereview.qt-project.org/c/qt/qtbase/+/783930 >> Though there are still rough edges around Qt that needs to be solved. >> Cheers, >> Tor Arne >> >> On 4 Nov 2026, at 11:19, coroberti wrote: >> Hi, >> Apple announced their first laptop with a touch screen. >> Is there any need to update/correct our applications? >> Is there any support in Qt missed to handle it? >> Thank you, >> Kind regards, >> Robert Iakobashvili >> >> Dear Tor Arne, > Thank you for your prompt reply and the patch. > > Is it makes sense to enable for all widgets: Qt::WA_AcceptTouchEvents > or Apple-simulated mouse events will work better although not in all cases? > > > I do not recommend enabling Qt::WA_AcceptTouchEvents for all widgets. > > For one, it enables touch events from trackpads as well, which has a > performance impact. > Secondly, doing so will disable the OS level emulation of mouse events for > that widget, so unless it actually handles touch fully things will break. > An example of that is that Qt Widgets does not have touch-based scrolling. > Nor does it respond to long-presses to trigger context menus. > > These are things I?m working on improving. > > Cheers, > Tor Arne > Yes, sure. Thank you very much! Kind regards, Robert Iakobashvili ............................ -------------- next part -------------- An HTML attachment was scrubbed... URL: