[Development] Adding support for version number comparisons

Thiago Macieira thiago.macieira at intel.com
Tue May 13 20:11:10 CEST 2014

Em ter 13 maio 2014, às 19:13:56, Oswald Buddenhagen escreveu:
> > If you think the QVersion constructor should be strict, I won't disagree.
> > Then we should have a QVersion::fromUserInput, like the QUrl version,
> > which is lax and has heuristics.
> that would work from an api perspective.
> but then there is also the semantical perspective. keith's last proposal
> i saw considered only numerical segments specially. but some versioning
> schemes may treat letters in a numeric way (aa > z). heck, there are
> projects which use hexadecimal notation. there is just no way to make an
> universal internal representation of that, which means the class' main
> purpose (comparing versions) cannot be satisfied.

Which is why I am saying we should make our decision on what we think we can 
support so it satisfies the most common real-world scenarios and be done with 

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list