OlivierLDff / QOlm

🧱 QAbstractListModel subclass that provide List of QObject to C++ and Qml
https://olivierldff.github.io/QOlm/
Other
29 stars 9 forks source link

Qt6: Add support for Qt6 #6

Closed moodyhunter closed 3 years ago

moodyhunter commented 3 years ago

I was trying to port Qaterial to Qt6 and found this issue.

function signatures listed below are changed (class QQmlListProperty)

    CountFunction = qsizetype (*)(QQmlListProperty<T> *);
    AtFunction = T *(*)(QQmlListProperty<T> *, qsizetype);
    ReplaceFunction = void (*)(QQmlListProperty<T> *, qsizetype, T *);

where int is replaced by qsizetype.

In this PR a conditional type alias is used to keep the compatibility for both Qt5 and 6.

  1. Added new matrix item for GitHub Actions.
OlivierLDff commented 3 years ago

Thanks a lot for contribution!

OlivierLDff commented 3 years ago

If you are interested about qaterial we have a discord here https://discord.gg/39kqt24s