Top "Qstring" questions

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

How to convert a pointer value to QString?

for debug purposes I often output pointer values (mostly this) to qDebug: qDebug("pointer of current object = 0x%08x",this);, …

c++ qt pointers qstring
Qt - Writing a file with QTextStream adds empty new lines to the text

I'm using the following code to write some text to a file: QFile caFile(outputFolder + "file.extension"); caFile.open(QIODevice::…

qt qstring qtextstream
How to convert QString to QDate in specific format?

I have a QDateEdit in my GUI from which I convert the QDate to QString and add it to my …

c++ qt qstring qdate
How to iterate through a QStringList

I'm trying to iterate through two different directories. The two directories are on the same root /. void MainWindow::loadPlugins() { pluginsDir = …

c++ qt iteration qstring qlist
ImportError: cannot import name 'QStringList' in PyQt5

I am using PyQt5 but can't import QStringList. I know that QStringList used to be in the module QtCore in …

python python-3.x import qstring pyqt5
Appending number to QString with arg() , is there better ways?

I've been using QString::number () to convert numbers to string for long time , now i'm wondering if there's something better …

qt qstring qt4.7
How to remove the first two characters of a QString

How would I remove the the first two characters of a QString or if I have to put it a …

c++ qt replace qstring
Copying the content of a character array to a QString in Qt

I have a character pointer that in any run can have different length. For example: char* myChar; In one run …

c++ qt qstring character-arrays
Pack QStringList to QString and unpack it back

I'm in search for an easy and foolproof way to convert an arbitrary QStringList to a single QString and back. …

c++ qt qstring
Convert qint64 to QString

With other types I could easily do something like mitm.created().toString("yyyy-MM-dd") Is there a similar function to turn …

c++ qt qt4 qstring qtcore