Hello,
Qt 6 is on the door, is anyone working on a port ?
If the answer is no, I could look into it, but I need to know the oldest qt version we want to support here ?
xan.
I will have a look at the Qt 6.0 alpha - but there is no hurry. Ususally it does not make too much sense to look at a version before at least a beta is available. But as the Qwt code had been fixed to work without any warnings for Qt 6 deprecations I guess it won't be too difficult.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All branches >= 6.2 should be compilable with Qt 6.0.0 Beta 2. The only remaining problem I can see so far is that all texts are gone when generating a PDF export.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-01-31
I've tried compiling 6.2 with Qt6 and the new CMake API, but can't get it to link properly. I'm getting a bunch of undefined reference errors and I've no clue why.
Also, qgl.h seems to be removed from Qt6?
I had to remove "qwt_plot_opengl_canvas" and "qwt_plot_glcanvas" from the build otherwise it would have complained about the missing header.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What do you mean by "CMake API"?
Qwt use qmake to build. There is no other way to build it!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-02-01
Qt6 comes with a new CMake API: https://doc.qt.io/qt-6/cmake-get-started.html
As far as I know this is considered the new default and qmake is going to be deprecated some time in the future.
Anyhow. I've tried to create a CMakeLists.txt file for Qwt (see attachment) but for some reason it fails at linking. Not really sure why though, maybe it's moc related.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-02-02
I'm using the latest git version of qwt dated Nov 11, 2021. It appears CLion is using ninja (which I know nothing about), but the link worked, libqwt.so.6.3.0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-02-03
I'm using 6.2.0 (see CMakeLists.txt file where a tar is fetched from sourceforge)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
QGLWidget has been replaced by QOpenGLWidget and has been removed with Qt6. So you have to go with the QOpenGL classes.i
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-02-05
Ok thats weird. I've just successfully compiled and linked Qwt with Qt6 by using a plain old "add_library" command instead of the "qt_add_library" version... Why this suddenly worked? I have no idea. Signals got generated in both versions...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will have a look at the Qt 6.0 alpha - but there is no hurry. Ususally it does not make too much sense to look at a version before at least a beta is available. But as the Qwt code had been fixed to work without any warnings for Qt 6 deprecations I guess it won't be too difficult.
All branches >= 6.2 should be compilable with Qt 6.0.0 Beta 2. The only remaining problem I can see so far is that all texts are gone when generating a PDF export.
thanks a lot!
When to release a version supporting Qt6?
https://sourceforge.net/p/qwt/news/2021/06/qwt-62-rc1/
I've tried compiling 6.2 with Qt6 and the new CMake API, but can't get it to link properly. I'm getting a bunch of undefined reference errors and I've no clue why.
Also, qgl.h seems to be removed from Qt6?
I had to remove "qwt_plot_opengl_canvas" and "qwt_plot_glcanvas" from the build otherwise it would have complained about the missing header.
What do you mean by "CMake API"?
Qwt use qmake to build. There is no other way to build it!
Qt6 comes with a new CMake API:
https://doc.qt.io/qt-6/cmake-get-started.html
As far as I know this is considered the new default and qmake is going to be deprecated some time in the future.
Anyhow. I've tried to create a CMakeLists.txt file for Qwt (see attachment) but for some reason it fails at linking. Not really sure why though, maybe it's moc related.
It compiled for me using CLion once I took out the 4 gl files you mentioned. What are your link errors?
Qwt itself builds fine, but linking against the * .so fails with a bunch of undefined references. to signals. (hence I suspect moc)
I'm using the latest git version of qwt dated Nov 11, 2021. It appears CLion is using ninja (which I know nothing about), but the link worked, libqwt.so.6.3.0.
I'm using 6.2.0 (see CMakeLists.txt file where a tar is fetched from sourceforge)
Qt support to be used by CMake projects since a long time ago.
The only thing that changed with Qt6 is that Qt itself is now use CMake.
https://doc.qt.io/archives/qt-5.5/cmake-manual.html
Last edit: Mehdi Chinoune 2022-02-02
Is there a fix for this? I'm still unable to use the QwtPlotGLCanvas with Qt 6.5.2 + Qwt 6.2.
QGLWidget has been replaced by QOpenGLWidget and has been removed with Qt6. So you have to go with the QOpenGL classes.i
Ok thats weird. I've just successfully compiled and linked Qwt with Qt6 by using a plain old "add_library" command instead of the "qt_add_library" version... Why this suddenly worked? I have no idea. Signals got generated in both versions...