[Interest] Qt5 beta1 windows - can't get device notifications from a QWindow::winId() via RegisterDeviceNotification

Liam Staskawicz lstask at gmail.com
Tue Oct 16 21:01:43 CEST 2012


On Tue, Oct 16, 2012 at 3:00 AM, <interest-request at qt-project.org> wrote:

> ------------------------------
>
> Message: 7
> Date: Mon, 15 Oct 2012 20:49:58 -0700
> From: Thiago Macieira <thiago.macieira at intel.com>
> Subject: Re: [Interest] Qt5 beta1 windows - can't get device
>         notifications   from a QWindow::winId() via
> RegisterDeviceNotification
> To: interest at qt-project.org
> Message-ID: <10309981.HU8HR8KnKg at tjmaciei-mobl2>
> Content-Type: text/plain; charset="us-ascii"
>
> On segunda-feira, 15 de outubro de 2012 20.34.22, Liam Staskawicz wrote:
> > In Qt5, I have tried the approach above, and do not see any events of
> > type WM_DEVICECHANGE dispatched via QWidget::winEvent().
>
> I don't know if you noticed, but there's no QWidget::winEvent.
>

Ah, please excuse my typo :)


>
> > Are there any known changes around this behavior between Qt4 and Qt5? Any
> > possible workarounds to get me detecting devices again?
>
> To receive native events, see
> QAbstractEventDispatcher::installNativeEventFilter.
>

Perfect - works like a charm. Thanks!

Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121016/47651884/attachment.html>


More information about the Interest mailing list