Results 1 to 2 of 2

Thread: qint32 vs int32_t

  1. #1
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default qint32 vs int32_t

    Hi guys,

    I have a question:
    Can I use the types: qint32(Qt of course) and int32_t(<stdint.h>) with the same result?
    I need fix width variables to have the same size of 32/64 OSs, can I use one instead of another one, etc?
    I am working on raster charts' reading and have to have fix width 4bytes "long" values for 32 and 64 bit platforms.

    Thank you,

    Kacper
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qint32 vs int32_t

    This topic helped me a bit and may help those who have the same dilemma:

    http://lists.trolltech.com/qt-intere.../msg01430.html
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

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.