Top "Qstring" questions

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

Convert QUrl with percent encoding into string

I use a URL entered by the user as text to initialize a QUrl object. Later I want to convert …

qt urlencode qstring qurl
Why is QString printed with quotation marks?

So when you use qDebug() to print a QString, quotation marks appears suddenly in the output. int main() { QString str = "…

qt qstring qdebug
Qt/C++ Convert QString to Decimal

How Can I convert QString to decimal ? In C# code it look like that: public static decimal ConvertToDecimal(string tekst, …

c++ qt qstring qtcore
How to produce Capital hexadecimal digits with QString::arg() ? [QT]

I'm trying to create a QString which is a hexadecimal number with its letter digits in Capitals instead of small …

qt qt4 hex qstring qt4.6
How can I partition a QByteArray efficiently?

I want to partition a QByteArray message efficiently, so this function I implemented take the Bytes, the part I want …

qt string substring qstring qbytearray
How can I convert a QString of numbers to an array of int?

I have a QString containing a series of numbers for example QString path = "11100332001 234 554 9394"; I want to iterate over the variable …

c++ qt type-conversion qstring
How to highlight a string of text within a QTextEdit

I'm a student programmer currently developing an application for work using Qt4. I am building an equation editor and I'm …

c++ qt stylesheet qstring qtextedit
C++ Qt return empty QString

I made a function which returns a QString. At some points in my function it should return an empty QString. …

c++ qt qstring
How to make a QString from a QTextStream?

Will this work? QString bozo; QFile filevar("sometextfile.txt"); QTextStream in(&filevar); while(!in.atEnd()) { QString line = in.readLine(); …

qt qstring
Get the Contents of a QComboBox

I need to get an QStringList or an array containing all QStrings in a QComboBox. I can't find a QComboBox …

c++ arrays qt qstring qcombobox