Closed xavier2k6 closed 8 months ago
@Chocobo1 @glassez
Preliminary testing of Qt 6.6 findings....
https://wiki.qt.io/Qt_6.6_Release#Qt_6.6_release_plan
These issues could be due to Qt 6.6 API Change.... https://bugreports.qt.io/browse/QTBUG-114214 as noted in https://lists.qt-project.org/pipermail/releasing/2023-June/002986.html
"Qt 6.6 beta 1" doesn't seem to like the changes made in https://github.com/qbittorrent/qBittorrent/pull/17723 (Windows)
It seems gui/utils.cpp is missing some headers. Please try this:
#include "utils.h"
#include <QtGlobal> // add this line
#ifdef Q_OS_WIN
#include <Objbase.h>
#include <Shlobj.h>
#include <Shellapi.h>
#endif
'operator""_qs' has been explicitly marked deprecated here
IMO we should migrate to the latest literal definition. Qt 6.4 introduced QString operator""_s()
and the previous ""_qs
is deprecated.
IMO it should be possible to modify the current (function) helper to ensure compatibility with all Qt versions.
BTW I'm not sure why Qt renamed the literal operator and it doesn't seem like a productive move...
Adding #include <QtGlobal>
did the trick...
(Windows Builds completed) https://github.com/xavier2k6/qBittorrent/actions/runs/5299493407
migrate to the latest literal definition. Qt 6.4 introduced
QString operator""_s()
and the previous""_qs
is deprecated.
https://doc.qt.io/qt-6/qstring-obsolete.html -> (6.8)
IMO it should be possible to modify the current (function) helper to ensure compatibility with all Qt versions.
Above my pay grade.....lol
BTW I'm not sure why Qt renamed the literal operator and it doesn't seem like a productive move...
It does seem strange that they would rename/introduce it & then deprecate it again later.... for some other form...
Just noticed.......(macOS)
warning: 'location' is deprecated: Use path() [-Wdeprecated-declarations]
2023-06-17T18:46:02.7436330Z m_qtTranslator.load((u"qt_" + localeStr), QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
warning: 'String' is deprecated: Use QMetaType::Type instead. [-Wdeprecated-declarations]
2023-06-17T18:36:22.1850420Z ? QVariant(QVariant::String) : m_resumeData.tags.join(u","_qs)));
warning: 'QVariant' is deprecated: Use the constructor taking a QMetaType instead. [-Wdeprecated-declarations]
2023-06-17T18:36:22.3401090Z ? QVariant(QVariant::String) : m_resumeData.tags.join(u","_qs)));
2023-06-17T18:36:22.3507460Z ^
2023-06-17T18:36:22.3610990Z /Users/runner/work/qBittorrent/Qt/6.6.0/macos/lib/QtCore.framework/Headers/qvariant.h:423:5: note: 'QVariant' has been explicitly marked deprecated here
2023-06-17T18:36:22.3712770Z QT_DEPRECATED_VERSION_X_6_0("Use the constructor taking a QMetaType instead.")
Might be no harm to go through https://doc.qt.io/qt-6/obsoleteclasses.html
Not sure why you had issues building on Linux with GUI=OFF
but seems maybe an issue in the Qt build itself?
https://github.com/xavier2k6/qBittorrent/actions/runs/5299493406/jobs/9592487697
I tested it the other day with no build issues.
https://github.com/userdocs/qbittorrent-nox-static-test/actions/runs/5278349016
No longer relevant
qBittorrent & operating system versions
qBittorrent: 4.6.0beta1 latest
master
f6b58f36 (at time of writing) Operating system: GHA CI runners - (Windows: 2022/Ubuntu: 22.04/macOS: 12.6.5) Qt: 6.6.0Beta1 libtorrent-rasterbar: 2.0.9/1.2.19What is the problem?
Windows
https://github.com/xavier2k6/qBittorrent/actions/runs/5294892886
"Qt 6.6 beta 1" doesn't seem to like the changes made in PR#17723 (Windows)
macOS
https://github.com/xavier2k6/qBittorrent/actions/runs/5294892888
Alot of possible upcoming deprecations......
Linux
https://github.com/xavier2k6/qBittorrent/actions/runs/5294892889
Not able to build currently.
Steps to reproduce
Use Qt6.6Beta1 to compile qBittorrent.
I used GHA CI for testing... https://github.com/xavier2k6/qBittorrent/actions?query=branch%3AQt6.6_test
Additional context
https://github.com/xavier2k6/qBittorrent/actions?query=branch%3AQt6.6_test
Log(s) & preferences file(s)
https://github.com/xavier2k6/qBittorrent/actions?query=branch%3AQt6.6_test