Results 1 to 3 of 3

Thread: what include for qFromLittleEndian

  1. #1
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default what include for qFromLittleEndian

    I am trying to use qFromLittleEndian which is documented in the <QtGlobal> - Global Qt Declarations. I have this in my source:

    #include <QtGlobal>

    but the VS2005 IDE setup I am using reports
    error C3861: 'qFromLittleEndian': identifier not found.

    What file do I have to include? This file?
    C:\Qt\4.3.3\src\corelib\global\qendian.h

    Thanks,

    Vanir

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: what include for qFromLittleEndian

    How do you use the function? It's a template function, are you aware of that?

  3. #3
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: what include for qFromLittleEndian

    Wysota,

    yes I am aware it is a template function having looked at the "<QtGlobal> - Global Qt Declarations" in Qt Assisant document and the "/src/corelib/global/qendian.h" file.

    I have ascertained that you need to include <QtEndian> to bring in to scope / make visible the qFromLittleEndian identifier.

    So the answer to my question is:
    The header to include to use qFromLittleEndian is QtEndian ie.
    #include <QtEndian>

    The documentation is misleading, incorrect and incomplete with respect to the qFromLittleEndian.

    Vanir

Similar Threads

  1. QApplication: no such file or directory
    By jochen_r in forum Newbie
    Replies: 13
    Last Post: 15th November 2008, 21:46
  2. Error: Using Multiple files
    By 3nc31 in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 09:23
  3. Painting problem
    By Mel in forum Qt Programming
    Replies: 10
    Last Post: 8th May 2007, 21:38
  4. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07
  5. use button from another Window
    By raphaelf in forum Qt Programming
    Replies: 11
    Last Post: 2nd March 2006, 20:31

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.