Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to check on which Windows platform the application is running
Can anyone tell me how can I tell if I the application is on mobile or desktop version of Windows?
I am interested because there are certain features I want to have on desktop and not on mobile, such as: start application on login, tray icon, etc.
What do you mean by Windows mobile ? What target do you have mind ?
Well, I want to allow my application to run on desktop / tablets / phones.
But from what I know most mobile devices (tablets and phones) can run on x86_64 arhitecture which can be misleading as this can return from any type of device using Windows 10, no?
So how can I differentiate between these types of devices.
@J.Hilk thanks for the answer but I don't see how sysinfo class can help.
Product version can return 10 on a desktop a tablet or a phone, same as with kernel type, product type and cpu arhitecture.
@adutzu89 Microsoft is giving up on Windows mobile, so supporting it doesn't make sense in the future. And Windows Mobile was running on ARM, not x86.
Then you may have to deal with some native APIs depending on how fine grained your need your informations to be.
You could also take a look at the WinRT QPA for some ideas.
@jsulm had a feeling there where some x86 phones, but didn't bothered to check before posting.
I have my doubts about the phone being dead, keep in mind that Win10 phones are still getting updates, there is UWP, project Andromeda, Windows tablets, but this isn't the place to discuss this stuff.
Ty for your answer.
Thanks for your answers, helped me clear the situation on how to proceed further.
@adutzu89 There are some x86 phones but most of the Windows phones use ARM.