[Interest] QVariant compare operator

evilruff evilruff at gmail.com
Sat Apr 18 11:43:57 CEST 2020


Hi Thiago,I am happy ro redesign my code, but how then sorting/filtering models will work? As data() returns QVariant. Or you plan to use setSorting based on lambda's and std::function to provide strict types sorting?And what if from API point of view user want just to specify column without aware of data types.Am I missing something? Woukd really appreceate if you can point me to some direction to look at. Regards, Yuri
Relational comparisons with QVariant are deprecated in 5.15 and will be removed because they are a misfeaure. Redesign your code so your question does not need to be asked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200418/5a3ab6e0/attachment.html>


More information about the Interest mailing list