Top "Qstring" questions

A QString is a class in Qt library which implements character strings.

Get plain text from QString with HTML tags

I have QString with html tags. Why can i get plain text from this string?

html qt qstring
QString replace only first occurrence

Is there simple way of replacing only first occurrence of some substring by other substring in QString? It can be …

c++ qt qstring qtcore
How to write a QString on several lines?

Do you have a better way to do that ? QString str("I am a long long long" + QString("long long …

c++ qt qstring
What is the equivalence for QString::arg() in QML

I'm wondering How I can have a string in QML that will be occupied with some arguments? Some thing like …

qt qml qstring
Getting filename from path using QString basic functions

There's some path as QString: QString path = "C:/bla/blah/x/y/file.xls"; I thought that maybe getting last …

qt path qstring
Qt remove regular expression from string

I have a QString that I have replaced "=" and"," with " ". Now I would like to write a regular expression that …

qt qstring qregexp
How to get a first word of from a Qstring

I want to get first word of a Qstring. For example String1 = "Read from file1". I want to extract string2 = "…

qt qstring qregexp
QString to unicode std::string

I know there is plenty of information about converting QString to char*, but I still need some clarification in this …

qt unicode encoding qstring
QString::number() 'f' format without trailing zeros

I want to convert number to QString with 3 significant digits. QString::number(myNumber,'f',3); does the job but remains trailing …

c++ qt qstring
Converting QModelIndex to QString

Is there a way to convert QModelIndex to QString? The main goal behind this is that I want to work …

c++ qt qstring qmodelindex