Skip to content

Qt6 compatibility patch 2#397

Merged
mrkite merged 1 commit into
mrkite:masterfrom
Kolcha:qt6-compat-patch-2
May 10, 2026
Merged

Qt6 compatibility patch 2#397
mrkite merged 1 commit into
mrkite:masterfrom
Kolcha:qt6-compat-patch-2

Conversation

@Kolcha
Copy link
Copy Markdown
Contributor

@Kolcha Kolcha commented Apr 28, 2026

this patch resolves compatibility issues with QString::split()

  • QRegExp -> QRegularExpression migration (in split() cases only)

    QString::split() accepting QRegExp is not available in Qt 6 (also deprecated in Qt 5), so such cases must be migrated. there was only single such case, and it is 1:1 migration.

  • QString::SplitBehavior -> Qt::SplitBehavior migration

    QString::SplitBehavior is obsolete since Qt 5.14, and was completely removed in Qt 6. use new values in the codebase and introduce compatibility layer for the older Qt versions.

these changes don't make build with Qt6 possible, but they don't hurt Qt5 build either, and still move Qt6 migration forward.

this patch resolves compatibility issues with QString::split()

- QRegExp -> QRegularExpression migration (in split() cases only)

  QString::split() accepting QRegExp is not available in Qt 6
  (also deprecated in Qt 5), so such cases must be migrated.
  there was only single such case, and it is 1:1 migration.

- QString::SplitBehavior -> Qt::SplitBehavior migration

  QString::SplitBehavior is obsolete since Qt 5.14, and was
  completely removed in Qt 6. use new values in the codebase
  and introduce compatibility layer for the older Qt versions.

these changes don't make build with Qt6 possible, but they don't
hurt Qt5 build either, and still move Qt6 migration forward.
@Kolcha
Copy link
Copy Markdown
Contributor Author

Kolcha commented Apr 28, 2026

these changes are completely independent from the changes in the previous PR (#396) and can be merged in any order. this PR is also "micro PR" (as the previous one) - very few modified files with few changed lines. likely only one more PR will be created later to introduces the final changes (also minimal) to enable Qt6 builds.

@Kolcha Kolcha mentioned this pull request Apr 28, 2026
@EtlamGit
Copy link
Copy Markdown
Collaborator

@mrkite mrkite merged commit a03e168 into mrkite:master May 10, 2026
6 checks passed
@Kolcha Kolcha deleted the qt6-compat-patch-2 branch May 11, 2026 05:54
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.

3 participants