i m a beginner in c++ and i have a question. how can i combine a variable and a string in the folowing line.
QMessageBox::Question(this,"Report", "the Report is in Path: " + pdfPath + "saved, do you want to open it", QMessageBox::Yes | QMessageBox::No);
pdfPath
is my Variable where the path of my pdf-file is saved.
I tried this, ("the Report is in Path: " + pdfPath + "saved, do you want to open it") but it does not work. Thank you in advance :)
if pdf path is not a QString then you can to convert it into one,
concatenating QStrings works straigh forward cos the operator + is overloaded