Hi! I'm experimenting with porting a Qt 4.8 application I'm working on to Qt5 beta1. One task of my app is to monitor whether a particular USB device is connected or not. I'm working on my Win7 64bit dev machine, using MSVC Express 2010.
In Qt 4.8.3 (and earlier), I have code that works nicely for this, feeding a QWidget::winId() into RegisterDeviceNotification ( http://msdn.microsoft.com/en-us/library/windows/desktop/aa363431(v=vs.85).aspx) and handling the events that get dispatched via QWidget::winEvent(). In Qt5, I have tried the approach above, and do not see any events of type WM_DEVICECHANGE dispatched via QWidget::winEvent(). I also tried changing my QWidget to a QWindow, and feeding its winId() to RegisterDeviceNotification(), and monitoring QWindow::nativeEvent() for events - I don't see any WM_DEVICECHANGE events here either. Are there any known changes around this behavior between Qt4 and Qt5? Any possible workarounds to get me detecting devices again? Thanks! Liam
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest