QtService icon indicating copy to clipboard operation
QtService copied to clipboard

QtService with QT6

Open lazaj opened this issue 2 years ago • 9 comments

I used QtService with Qt5 on Mac Intel. Qt official support for Mac ARM start with version 6.x. Do you support Qt6 ?

lazaj avatar Jan 09 '22 18:01 lazaj

Salute, I have already port it to Qt6 so let me know about... Skycoder42, many thanks to you )

scaramancha avatar Jan 10 '22 10:01 scaramancha

@scaramancha would you mind creating a PR for Qt 6 support?

Skycoder42 avatar Jan 12 '22 07:01 Skycoder42

Salute, I will do this on the next week, sorry for delay ...

scaramancha avatar Jan 23 '22 20:01 scaramancha

@scaramancha Could you share the upgrade ? I'm changing too, but currently the upgrade is just completed for MacOS and Windows, other backends is still under investing because Qt Android has a lot of changes.

stephenlang84 avatar Apr 13 '22 17:04 stephenlang84

@Skycoder42 I am building QtService with Qt6, but I get a problem, when integrating the new libs to my project(Cmake Qt project) and it said that cannot find Service through find_package, because it is missing .cmake files in Qt's cmake folder, But I don't understand how to generate these .cmake files.

stephenlang84 avatar Apr 22 '22 03:04 stephenlang84

@Skycoder42 I am building QtService with Qt6, but I get a problem, when integrating the new libs to my project(Cmake Qt project) and it said that cannot find Service through find_package, I was explained that it is missing .cmake files in Qt's cmake folder, But I don't understand how to generate these .cmake files ?

Finally I can generate .cmake file, I had to use https://github.com/qt/qtbase/blob/6.3.0/util/cmake/run_pro2cmake.py) tool to convert QtService from qmake to cmake then use /Qt/6.3.0/bin/qt-configure-module tool to generate the .cmake, the result is quite good, but still need to edit manually a bit. I'm not sure this is official solution to do that or not, but now I can find Qt6Service by find_package()

And QtService still work very stable with Qt6. Thanks @Skycoder42

stephenlang84 avatar May 30 '22 10:05 stephenlang84

@scaramancha Have you had a chance to look at the Qt6 code?

DeceitfulSloth avatar Mar 06 '23 10:03 DeceitfulSloth

@DeceitfulSloth @lazaj I forked/updated a version that works with Qt6. I didn’t create a pull request to the root repository of @Skycoder42 because it would take more effort to support both versions of Qt5 and Qt6. https://github.com/stephenlang84/QtService

stephenlang84 avatar Mar 30 '23 14:03 stephenlang84

@stephenlang84 thanks for sharing that will be very useful.

DeceitfulSloth avatar Mar 31 '23 07:03 DeceitfulSloth