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
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:
- Why it is done this way?
- What is the best (recommended) way to handle this difference?
- May be I misunderstand something and do it a wrong way?
Thank You in advance)))
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(...).
You're welcome !
I can assure you there's only data and it's valid for all platforms