Hello,
I was wondering what is a similar or equivalent class to NSNumber in iOS, in Qt??
https://developer.apple.com/library/...Reference.html
Thanks.
Hello,
I was wondering what is a similar or equivalent class to NSNumber in iOS, in Qt??
https://developer.apple.com/library/...Reference.html
Thanks.
Just list all the classes you are using in one thread
I don't think there's direct alternative, but you can use QVariant too.
Or float, or double, or bool.
Using a generic storage like QVariant just because it is "equivalent" to the scripting-style-thingy NSNumber is ignoring the characteristics of the actual problem you are trying to solve. If you need to store integers use an appropriately sized int. If you want floating point use float or double, If you want boolean values use bool.
Bookmarks