Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to check on which Windows platform the application is running
Forum Updated to NodeBB v4.3 + New Features

How to check on which Windows platform the application is running

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adutzu89
    wrote on last edited by
    #1

    Hello,
    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.

    J.HilkJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you mean by Windows mobile ? What target do you have mind ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A adutzu89

        Hello,
        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.

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @adutzu89 my guess is, QString QSysInfo::productVersion() could help you.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        A 1 Reply Last reply
        2
        • A Offline
          A Offline
          adutzu89
          wrote on last edited by
          #4

          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.

          jsulmJ 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @adutzu89 my guess is, QString QSysInfo::productVersion() could help you.

            A Offline
            A Offline
            adutzu89
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0
            • A adutzu89

              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.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @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.

                  A Offline
                  A Offline
                  adutzu89
                  wrote on last edited by
                  #8

                  @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.

                  jsulmJ 1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    adutzu89
                    wrote on last edited by
                    #9

                    Thanks for your answers, helped me clear the situation on how to proceed further.

                    1 Reply Last reply
                    0
                    • A adutzu89

                      @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.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @adutzu89 There are some x86 phones but most of the Windows phones use ARM.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved