-
Notifications
You must be signed in to change notification settings - Fork 313
Getting ready to Qt 6 (9/n). Apply Qt 6 specific changes #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In Qt 6, registration of `QDataStream` streaming operators is done automatically. Consequently, `qRegisterMetaTypeStreamOperators()` does no longer exist. Calls to this method have to be removed when porting to Qt 6. See https://doc.qt.io/qt-6/qtcore-changes-qt6.html#the-qmetatype-class
In Qt 6, high DPI pixmaps and scaling are always enabled. https://doc.qt.io/qt-6/highdpi.html
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK, need to finish testing
-
- I have confirmed with Qt Docs that the commit description is correct and we do in fact need to remove the
qRegisterMetaTypeStreamOperator
when building with Qt6. The usage ofqRegisterMetaType
is the appropriate call for Qt6.
- I have confirmed with Qt Docs that the commit description is correct and we do in fact need to remove the
-
- Confirmed with Qt docs that for Qt6 we should use
QLibraryInfo::path
instead ofQLibraryInfo::location
. The new code here is correct as we useQLibraryInfoPath
and we pass in a valid::LibraryPath
enum in::TranslationsPath
- Confirmed with Qt docs that for Qt6 we should use
-
- Confirming with Qtdocs that we don't need to set hidpi flags with Qt6: "... Qt 5 behavior assumes that AA_EnableHighDpiScaling has been set (this flag is not needed on Qt 6)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d8d99d0
Tested with Qt6 and the experimental Cmake branch and confirmed the window size and components look fine on a HIDPI and low dpi display. Also tested that I can still choose and switch through translations. Additionally, I performed a sanity check building with Qt5.
Code review ACK d8d99d0 |
One more step in migration to Qt 6.
Could be tested with hebasto/bitcoin#3 or bitcoin/bitcoin#24798.
No behavior change when compiling with Qt 5.