How to call a static method without an instance?
lbsiahaan
Posts: 7
How does one call a static class method for Dz* classes?
It works as expected on ECMAScript classes:
Array.isArray([]) Date.now() String.fromCharCode(65)
But fails for all the DAZ classes:
DzDir.cleanPath("/Path") DzUri.fromLocalFilename("/Path") DzVersion.fromString("1.0")
Comments
Just create an instance with dummy values.
They're not correctly described as 'static' then, or not as the rest of the universe outside Daz-world defines them! Very confusing, and unnecessarily so - why call them static when they don't behave in the way that would suggest?
I would expect this usage is at least general across Qt.