Top "Qstring" questions

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

Char to QString

I have a char array and want to convert one of the values from char to qstring: unsigned char inBuffer[64]; .... …

c++ qt qstring
How to get substring from a string in qt?

I have a text form: Last Name:SomeName, Day:23 ...etc From Last Name:SomeName, I would like to get Last …

c++ regex qt qstring qregularexpression
QString:number with maximum 2 decimal places without trailing zero

I have a division like this: number / 1000.0 Sometimes it gives answers like 96.0000000001, sometimes the division works as expected. I want …

c++ qt precision qstring qtcore
QString::toDouble() giving me double with wrong precision

I have a QString myNumber containing "09338.712001". When I do: myNumber.toDouble();, it returns 9338.71, but I want the double to be …

qt double precision qstring
Concatenating two QStrings with an integer

I want to do something like this in C++ using Qt: int i = 5; QString directory = ":/karim/pic" + i + ".jpg"; where + …

c++ qt qstring
How to get QString from QListView selected item in Qt?

I need to get the selected item name in QListView as a QString. I have tried to google, but I …

qt qstring qlistview
QString remove last characters

How to remove /Job from /home/admin/job0/Job QString name = "/home/admin/job0/Job" I want to remove last …

qt qstring
Convert WCHAR to QString in Qt

Convert WCHAR to QString in Qt. Please help me to implement it to complete this convertion.

c++ qt qstring wchar
Convert QString into unsigned char array

I have a very basic question here. I tried googling for a while, because there are a lot of similar …

c++ arrays qt qstring unsigned-char
How to specify a unicode character using QString?

How can I specify a unicode character by code (such as "4FF0") using QString? I tried QString s("\u4FF0"); …

qt unicode qstring