Skip to content

feat: add support for Qt6 and fix compilation issues #58

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caomengxuan666
Copy link

  • Replace deprecated QLayout::setMargin() with setContentsMargins().
  • Replace QPalette::Foreground with QPalette::WindowText to adapt to Qt6's QPalette role changes.
  • Ensure compatibility with both Qt5 and Qt6 to avoid API-related compilation errors.

Test Results:

  • Successfully compiles and runs on both Qt5 and Qt6 environments.
  • The fixes maintain functional consistency and do not introduce new issues.

This update improves cross-version compatibility and provides better support for future migration to Qt6.

- Replace deprecated QLayout::setMargin() with setContentsMargins().
- Replace QPalette::Foreground with QPalette::WindowText to adapt to Qt6's QPalette role changes.
- Ensure compatibility with both Qt5 and Qt6 to avoid API-related compilation errors.

Test Results:
- Successfully compiles and runs on both Qt5 and Qt6 environments.
- The fixes maintain functional consistency and do not introduce new issues.

This update improves cross-version compatibility and provides better support for future migration to Qt6.
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.

1 participant