Is it possible to use the accelerometer of Surface Pro 3 via Qt? Will it work with QtCreator and MinGW or is Visual Studio required?
The Qt 5.3 documentation is a bit confusing to me:
http://qt-project.org/doc/qt-5/qtsensors-index.html
"Currently the API is supported on Android, BlackBerry 10, iOS, SailFish and WinRT"
The compatibility map (http://qt-project.org/doc/qt-5/compatmap.html) indicates that Windows 8/RT is supported. Does this mean that Surface Pro 3 is supported?
I don't have access to a Surface Pro 3 myself so I cannot test that.
Yes, it is possible! But unfortunately not out of the box with Qt 5.4. You have to change some files in the qtsensors plugin and compile it with MSVC2013. After that you can use the sensors (including QAccelerometer
) even from Windows 8.1 desktop (not the metro stuff).
See this question and the answer from user2629409 which shows you the steps you need to do and my comment there when you want to know which specific sensors are available on the Surface Pro 3.
After this process you can use the qsensors just normal. Start reading on the QSensor class and this overview may be a good idea.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments