You can use this method and pass the # character:
#include <QString>
Then, for example, using gcc, you can execute the following command or something similar to see the result.
g ++ -I / usr / include / qt -I / usr / include / qt / QtCore -lQt5Core -fPIC main109.cpp && & &. / a.out
The output will be: 9
As you can see, there is no need to repeat through yourself, since the Qt-convenience method already does this for you using the internal qt_string_count .
lpapp source share