I'm just starting out with Qt and I really want to try and keep my application as separated from Qt as possible in case I decide to use a different toolset later, but at the same time don't want to make any decisions that will really cripple my application right from the beginning.
When writing a Qt Application is it considered good practice to always prefer Qt implementations when they are available? Or in some situations is it best to stick with standard C++ even when Qt has an alternative?
Consider the following...
Function implementations:
Should I always prefer to use a Qt function implementation when it is availabe? Take the math functions for example...
pow
vsqPow
log
vsqLn
- etc...
Data types:
Should I always prefer Qt data types over the defaults?
int32_t
vsqint32
double
vsqreal
- etc...
Objects:
Should I always prefer Qt objects over their STL equivalents?
std::string
vsQString
std::vector
vsQVector
In each of these situations what are the advantages/disadvantages. What will I gain or lose?
The more Qt based functions/objects I use the more difficult it would be to switch to something other than Qt later.