Hi,Recently I was debugging one of my project and ended up with something which 
really surprise me.Are there any special reasons why QVariant compare < not 
fully cover appropriate operators from other Qt classes.For example QByteArray 
has own operator < but within QVariant switch QByteArray type just defaults to 
toString() which for QByteArray is toUtf8() leads to fact that if you 
have:QByteArray a,b;Knowning that a < b is true, QVariant(a) < QVariant(b) may 
be false..Thats really really inconvinient especially working with ModelView 
concept which is QVariant based..Sort of workaround might be to allow toString 
custom replacing for Qt classes but still I will really appreceate if somebody 
explains me reasons for such strange concept to implement own comparasion 
within QVariant rather then using already existing 
operators.RegardsYuriОтправлено со смартфона Samsung Galaxy.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to