QAbstractItemModel::data(...) on MacOS and other platforms



  • Hello to everybody!

    I'm not very experienced Qt developer and have may be very easy to answer questions... but...

    It seems that on MacOS platform the method

    @QAbstractItemModel::data(...)@

    has name

    @QAbstractItemModel::listData(...)@

    I'm using Qt 5.2. It's possible to use conditional compilation with #ifdef to handle this difference between platforms, but my questions are:

    1. Why it is done this way?
    2. What is the best (recommended) way to handle this difference?
    3. May be I misunderstand something and do it a wrong way?

    Thank You in advance)))


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    There's not such difference. What might have occurred however is that the header as been modified accidentally while doing a global search/replace.



  • Thank You for reply.

    In Qt 5.2.1 on Mac OS X builded from sources the method has name QAbstractItemModel::data(...).


  • Lifetime Qt Champion

    You're welcome !

    I can assure you there's only data and it's valid for all platforms


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.