Unsolved Qt 6.0 adaptation: no member named 'midRef' in 'QString'. How to solve?
-
Hello all!
I am trying to adopt the Qt 5.15 application for Qt 6.0 requirements and have this kind of error:1082:38: error: no member named 'midRef' in 'QString' const int v = option.midRef(1).trimmed().toInt(&ok);
How to solve it in Qt 6.0?
-
@bogong said in Qt 6.0 adaptation: no member named 'midRef' in 'QString'. How to solve?:
How to solve it in Qt 6.0?
Use QStringView ctor.
-
@Christian-Ehrlicher what is "ctor"? Class constructor?
-
@bogong said in Qt 6.0 adaptation: no member named 'midRef' in 'QString'. How to solve?:
what is "ctor"
Constructor.