More a custom and practice question, but is it considered poor form, or highly inadvisable (choose your interpretation of badness) to mix the use of Qt library types and similar standard C++ types in the one program?
For example, is it highly advisable to stick to using ONLY QStrings for string use, or do people often mix QString and std::string types in the source file?
I have inherited some code that includes use of QString and std::string in the one file and am wondering whether to convert everything to one or the other.
I think it really comes down to “it depends on what you are doing.” Certainly, it is easier to keep things as only one type. Yet, there may be times when you need to pass std::strings or pass QStrings and it might be better performance-wise to not do the conversion.
Also keep in mind that QStrings are not the same as std:strings. So keep that in mind when converting between them (or choosing to only use a certain type).