Import QtQuick 2.0 or 2.1 or 2.2?
Not really an issue, but since 5.2 is out now, I notice that Qt Creator autocomplete gives me the option of importing either QtQuick 2.0 or 2.1 or 2.2.
My old code is importing QtQuick 2.0, some newer parts are importing 2.1, and now I could import 2.2.
Is there a best practice here? Would it cause problems if some files are importing different versions of QtQuick? Does it cause more memory usage?
Would it be good practice since I'm now using Qt 5.2 to change all imports to QtQuick 2.2? What is the risk of changed behaviour by changing the import version?
Any thoughts appreciated.
Re: Import QtQuick 2.0 or 2.1 or 2.2?
Quote:
Originally Posted by
pherthyl
Would it cause problems if some files are importing different versions of QtQuick?
No.
Quote:
Does it cause more memory usage?
No.
Quote:
Would it be good practice since I'm now using Qt 5.2 to change all imports to QtQuick 2.2?
If you code works with 2.0 import, I'd leave it as it is.
Quote:
What is the risk of changed behaviour by changing the import version?
The problem is only if you change a higher version of an import into a lower one as some things might stop working.
All what I wrote only applies to differences in minor numbers. For major numbers this might not be true -- e.g. QtQuick 1.1 and QtQuick 2.0 are not 100% compatible.
Re: Import QtQuick 2.0 or 2.1 or 2.2?
Thank you very much. The OCD in me wants all the imports to be consistent, but this is very helpful.