Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Standard #defines
QtWS25 Last Chance

[Solved] Standard #defines

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 4 Posters 4.3k Views
  • 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.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #1

    Hi, I have searched in the documentation but I have not found a list of all those defines useful when parts of the application should have a different behavior if symbian, Harmattan, destkop etc.

    To be clear here is an example (found copying another example) of what I mean:
    @
    #ifdef Q_OS_SYMBIAN
    #include <SpecialDef.h>
    #endif
    @
    Someone knows if there is a specific doc or a list of them?

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      From qglobal.h:

      @
      /*
      The operating system, must be one of: (Q_OS_x)

       DARWIN   - Darwin OS (synonym for Q_OS_MAC)
       SYMBIAN  - Symbian
       MSDOS    - MS-DOS and Windows
       OS2      - OS/2
       OS2EMX   - XFree86 on OS/2 (not PM)
       WIN32    - Win32 (Windows 2000/XP/Vista/7 and Windows Server 2003/2008)
       WINCE    - WinCE (Windows CE 5.0)
       CYGWIN   - Cygwin
       SOLARIS  - Sun Solaris
       HPUX     - HP-UX
       ULTRIX   - DEC Ultrix
       LINUX    - Linux
       FREEBSD  - FreeBSD
       NETBSD   - NetBSD
       OPENBSD  - OpenBSD
       BSDI     - BSD/OS
       IRIX     - SGI Irix
       OSF      - HP Tru64 UNIX
       SCO      - SCO OpenServer 5
       UNIXWARE - UnixWare 7, Open UNIX 8
       AIX      - AIX
       HURD     - GNU Hurd 
       DGUX     - DG/UX 
       RELIANT  - Reliant UNIX
       DYNIX    - DYNIX/ptx 
       QNX      - QNX 
       QNX6     - QNX RTP 6.1 
       LYNX     - LynxOS 
       BSD4     - Any BSD 4.4 system 
       UNIX     - Any UNIX BSD/SYSV system 
      

      */
      @

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        Thanks, mlong!

        Fast and precise :) You saved a lot of time to me today, be happy ...

        Where is in the sources this and other system includes (I suppose ?)

        Thanks again.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          I grabbed it from the repository at http://qt.gitorious.org/qt/qt/blobs/master/src/corelib/global/qglobal.h

          I'd say the ".../src/corelib/global/" part is the most apropos to most snapshots, etc.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            They "are":http://doc.qt.nokia.com/latest/qtglobal.html#Q_OS_AIX in the docs as well.

            1 Reply Last reply
            0
            • AlicemirrorA Offline
              AlicemirrorA Offline
              Alicemirror
              wrote on last edited by
              #6

              Thank Lukas,

              my problem was that I had no idea of what to search (i.e. qglobal.h) ... :(

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                [quote author="Alicemirror" date="1315331970"]Thank Lukas,

                my problem was that I had no idea of what to search (i.e. qglobal.h) ... :([/quote]

                Qt Assistant provides nice index and search functions for that cases ;-) Just type Q_OS_SYMBIAN into the index and you will be thrown to the page that lists all other OSes.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • AlicemirrorA Offline
                  AlicemirrorA Offline
                  Alicemirror
                  wrote on last edited by
                  #8

                  Hi, Volker thank you again. The fact is that I recently (from the Qt 4.7.3 supporting Harmattan and the further updates up to the recent Qt creator 2.3 and Qt 4.7.4 that I have updatet two days ago) have lost the habit to see the index and use mostly the search opton because the documentation is continuously updating and there are a lot of "page not found". Then the Index seems not yet complete so when I see if something exist in the Index option it is not rare that I can't find it (and I am sure that there is) while I find in search...

                  But the version updates seems going to best so I wait. BTW, thanks to all. It was a silly problem but it saved to me a lot of time.

                  Enrico Miglino (aka Alicemirror)
                  Balearic Dynamics
                  Islas Baleares, Ibiza (Spain)
                  www.balearicdynamics.com

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #9

                    Ah, I see. And unfortunately the search in the DevNet docs gives no helpful matches in the first results :-/

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • AlicemirrorA Offline
                      AlicemirrorA Offline
                      Alicemirror
                      wrote on last edited by
                      #10

                      Yep, but in the devnet there is a good set of human "living" doc resources before the self destruction :D

                      Enrico Miglino (aka Alicemirror)
                      Balearic Dynamics
                      Islas Baleares, Ibiza (Spain)
                      www.balearicdynamics.com

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mlong
                        wrote on last edited by
                        #11

                        [quote author="Alicemirror" date="1315340499"]Yep, but in the devnet there is a good set of human "living" doc resources before the self destruction :D[/quote]

                        Indeed. Although, fortunately, my self destruction is progressing slowly.

                        Software Engineer
                        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                        1 Reply Last reply
                        0
                        • AlicemirrorA Offline
                          AlicemirrorA Offline
                          Alicemirror
                          wrote on last edited by
                          #12

                          Mine too. I have no any prevision to became an x-file (or Qt-file) before next 40 years...

                          Enrico Miglino (aka Alicemirror)
                          Balearic Dynamics
                          Islas Baleares, Ibiza (Spain)
                          www.balearicdynamics.com

                          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