Results 1 to 4 of 4

Thread: Cross-platforming and Qtopia

  1. #1
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cross-platforming and Qtopia

    I need to write code that compiles on a regular OS, and an embedded OS. If it's compiled for the embedded OS, it should run code that is Qtopia-specific, otherwise it's all standard Qt. I'm sure there's a simple define somewhere that tells you if you're compiling with the embedded libraries or not, but I've been unable to find it. What should I #ifdef for to find out if I'm being compiled with Qtopia or with QT/X11?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cross-platforming and Qtopia

    Yep, this is defined on Qtopia Core: Q_WS_QWS.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    Antrax (25th October 2006)

  4. #3
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cross-platforming and Qtopia

    Thankyou. Generally, how does one find such things out? There's no "search" function to Trolltech's online documentation, and reading their code every time to find things like that seems needlessly complex.

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cross-platforming and Qtopia

    Quote Originally Posted by Antrax View Post
    Generally, how does one find such things out? There's no "search" function to Trolltech's online documentation, and reading their code every time to find things like that seems needlessly complex.
    You can search the documentation using Qt Assitant or Google (http://www.google.com/search?q=site%...h.com+Q_WS_QWS)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.