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
Qt5 QML #3473
Comments
While I don't have the answer to your question, I wonder why Gentoo bothers to change configuration of a legacy Qt version. Shouldn't all the effort go to the current one, and the legacy version be frozen in maintenance mode? |
QtScript is part of Qt5.15 (LTS), and other software based on Qt5 may use it, so why is it removed? If you entirely remove Qt5 from Gentoo, just switch to Qt6. We have not tested QML with Qt5 recently and do not recommend it in an "official" distribution, given less functionality. It would just confuse users. |
The good news is that you've already ported to Qt6, and Gentoo's downstream maintainer for Stellarium provides that option. Unfortunately, Qt6 applications will look bad in Qt5-based DEs for some time to come, which means Qt6 build option would be a bad default until well into 2024. So, the worst thing that would happen to Stellarium is to look slightly out of place. It is, however, the only piece of software I've seen to choose to keep a QtScript codebase in the process of porting to Qt6, that makes it the odd one out. |
Stellarium does its own UI, independent from the Qt widgets theme, so this is not actually a concern here. So I guess I should just disable the Qt5 option for the Stellarium Gentoo package |
I have zero time this week for fixes. What kinds of error appear when you build with Qt5 and QML script? This is just the option nobody wants, given the demise of pauseScript() in QML. |
That seems to imply Stellarium with Qt6 QML does not have the same limitations/less functionality as a theoretical Qt5 QML version? @DarthGandalf: Possible, the only downside is potentially pulling in both qtwebengine slots for some users - but they can disable it, and QtWebEngine5 will only be the next tracker to identify porting stragglers. Please note there is no hurry here. The qtscript-removal tracker is a mid-longterm process. |
QML-based scripting has lost the ability to pause/resume script execution. Until a JS genius fixes that for us, we recommend "staying at Qt5" (implying "using QtScript", although QML should technically work with Qt5.15) when this is essential for some users. Else, some syntactic changes (3D vectors, colors) can be overcome by applying common new syntax in both versions. |
@gzotti who is supposed to call |
@DarthGandalf see this line: actionsMgr->addAction("actionResume_Script", datetimeGroup, N_("Resume script execution"), this, "resumeScript()", "Ctrl+D, R"); |
ok, I see the problem. If the script itself called However, there's no good way to pause the script via GUI, when the script didn't expect that itself. The best option I see is to check isPaused in every JS-callable function of StelMainScriptAPI... and all other functions callable from JS. That does somewhat decrease the frequency when exactly the script would be paused |
According to #2739 (comment) QML is only supported with Qt6. What specifically stops using QML with Qt5 instead of QtScript?
According to
stellarium/CMakeLists.txt
Lines 480 to 482 in 2533f48
Ref https://bugs.gentoo.org/916113 - QtScript is going to be removed from Gentoo
The text was updated successfully, but these errors were encountered: