So, howto count number of characters in QString???
So, howto count number of characters in QString???
Without you defining "characters" I guess you mean:
QString::size()
or
QString::length()
I need something like
void SomeClass::someslote(QString value)
{
if (count(value)>12)
{
cut(value,12);
}
}
So cut is function which cuts string to 12 characters and placing "..." at the end of the string.
for example
QString str = "some blah blah blah blah";
cut(str,12);
so after this function we will recive "some blah bl..."
How to do this using qt????Is there any function that can cut strings?
Can you please tell me which?
Ok, can i set fixed size for tab in tabWidget?
Bookmarks