(RE) Update from qt5 to qt6
-
The solution file of the current image works well in qt5 and is being upgraded to qt6 version.
To resolve the error, I asked my chat gpt teacher. Chat gpt teacher answered to change from A to B. Is this correct?
A : QList<char> dd = QVector<char>:fromStdVector(data)
B : QList<char> dd = QVector<char>::fromStdVector(data).toList();And if you check the site below, it says that QList and QVector are combined, so if I modify all of the QList in the code to QVector, will it work normally?
site : https://www.qt.io/blog/qlist-changes-in-qt-6I'd appreciate it if you could tell me how to fix those errors. I trust you guys more than chat gpt teacher.
-
Use this QList ctor which takes an iterator range.
-
I checked the link you gave me. Can you explain it in more detail?
-
Christian Ehrlicher Lifetime Qt Championreplied to Teemo of LOL on last edited by Christian Ehrlicher
@Teemo-of-LOL said in (RE) Update from qt5 to qt6:
Can you explain it in more detail?
It is basic c++ - just pass begin and end of your container to the ctor.
Don't know why you have to post an image of the documentation though... Everyone is able to click on a link I would guess.
-
@Christian-Ehrlicher
ctor is stands for “click-to-open rate.” It's the percentage of people who opened your email who then clicked a link within that email.is it right?
-
@Teemo-of-LOL
Pardon?ctor
is abbreviation for C++ constructor, per the link to QList::QList(InputIterator first, InputIterator last) which @Christian-Ehrlicher posted.