-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
Fix behavior of DitheringMode with QVariant in Qt5 #3307
Conversation
Thanks. Unfortunately it does not improve the issue. RemoteSync transmits properties and property changes to connected clients. Only QVariant types work with that. Something positive appears to have changed between Qt5 and Qt6, making enums just work properly. However, on Qt5 I see that connection still fails at the same point. Please do the following: plugins/RemoteSync/src/SyncClientHandlers.cpp, line 309-10, replace with:
Then, build with Qt5 and start one instance, start RemoteSync server (you must go to config/plugins/RemoteSync configure). You will see in the top left corner a status message indicating failure, reconnection will fail. Go up to identify the first such message.
The issues is still around StelCore.ditheringMode. It may be easier to declare that if the DitheringMode enum was defined inside a class. Is there a technical reason for keeping this separate from e.g. StelCore? There may be more recent changes which break this plugin in Qt5 now, just that this property shows itself first. |
d4a5b01
to
7e89ba7
Compare
Should work now. |
Ah yes, there! |
Compiled with Qt 5.15 successfully. What is your error message? |
Ah yes, it works on 5.15.2. Previously I tried 5.12.12 which we usually need. Sorry, MSVC has German compiler output: C:\Qt\5.12.12\msvc2017_64\include\QtCore/qmetatype.h(815): error C2679: Bin„rer Operator ">>": Es konnte kein Operator gefunden werden, der einen rechtsseitigen Operanden vom Typ "T" akzeptiert (oder keine geeignete Konvertierung m”glich) |
We could move to Qt5.15 on Windows of course. However, I don't know about Linux practice, are Qt5.15 packages easily available everywhere? Ubuntu 20.4LTS? Arch? Mandriva? RaspberryOS? Or whatever you are using? Small Linux SBCs make nice client screens. |
7e89ba7
to
e49a0dc
Compare
OK, the new version should support Qt 5.12 too. |
e49a0dc
to
0aa7b83
Compare
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.
Yay! Many thanks!
Hello @10110111! Please check the fresh version (development snapshot) of Stellarium: |
Hello @10110111! Please check the latest stable version of Stellarium: |
Fixes #3304
I didn't quite understand how
DitheringMode
gets intoQVariant
via the RemoteSync plugin, but at least with this changeQVariant::fromValue(DitheringMode::Color888).toString()
yields the correct string. Before this change the output string was empty. So I suppose this should be sufficient for #3304.