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

Add support for Qt6 (as well as Qt5) #261

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Add support for Qt6 (as well as Qt5) #261

merged 1 commit into from
Mar 15, 2024

Commits on Mar 14, 2024

  1. Add support for Qt6 (as well as Qt5)

    No actual code changes were necessary.
    
    I have partly followed
    https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html, but the
    versionless targets only work from Qt 5.15 onwards. The suggested
    workaround chooses 5 over 6 and does not appear to work properly when
    one of the required components is missing. Using the versionless
    approach with an additional variable for the targets seems to work best.
    
    If necessary, Qt 5 can be forced over 6 by passing
    `-DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON`.
    
    I have tested this by tweaking the code to force the GUI to appear.
    chewi committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    3f22368 View commit details
    Browse the repository at this point in the history