Skip to content
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: compile with qt6 and grass #47850

Merged
merged 1 commit into from
Mar 18, 2022
Merged

fix: compile with qt6 and grass #47850

merged 1 commit into from
Mar 18, 2022

Conversation

t0b3
Copy link
Contributor

@t0b3 t0b3 commented Mar 17, 2022

fix: compile with qt6 and grass

Currently the compilation with qt6 and grass fails.
Reason is Class <QStringRef> was removed in Qt6. https://doc-snapshots.qt.io/qt6-dev/qtcore-changes-qt6.html#the-qstringref-class
And the function leftRef() was entierly dropped.

Solution is to replace leftRef() with left(). This change is backward compatible with Qt5.

Fixes #47848

@github-actions github-actions bot added this to the 3.26.0 milestone Mar 17, 2022
@lbartoletti lbartoletti merged commit f58db73 into qgis:master Mar 18, 2022
@t0b3 t0b3 deleted the fix-qt6-grass branch March 18, 2022 08:14
@t0b3 t0b3 restored the fix-qt6-grass branch March 18, 2022 08:14
@t0b3 t0b3 deleted the fix-qt6-grass branch March 18, 2022 17:11
@t0b3 t0b3 mentioned this pull request Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compilation error with qt6 and grass
2 participants