Assigning a value to a QScopedPointer<QString>?
-
Hello, hope everyone is well. Got a pickle of an error here, any tips would be appreciated. Been googling for over an hour and no luck so far. Is it possible to assign a value to a variable wrapped in a QScopedPointer? Error I get is "no operator = matches these operands"
ThanksTestCode.cpp QScopedPointer<QString> customerString; QString newString01 = "Valued Customer"; existingString = newString01; // error line
-
Hello, hope everyone is well. Got a pickle of an error here, any tips would be appreciated. Been googling for over an hour and no luck so far. Is it possible to assign a value to a variable wrapped in a QScopedPointer? Error I get is "no operator = matches these operands"
ThanksTestCode.cpp QScopedPointer<QString> customerString; QString newString01 = "Valued Customer"; existingString = newString01; // error line
-
But the real question here is - why do you want to use
QScopedPointer<QString>
in the first place?