Menu

#100 qt6 support ?

None
closed
nobody
None
5
2025-04-30
2020-10-15
Michel Zou
No

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.

Discussion

  • Uwe Rathmann

    Uwe Rathmann - 2020-10-16

    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.

     
  • Uwe Rathmann

    Uwe Rathmann - 2020-11-01

    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.

     
  • Uwe Rathmann

    Uwe Rathmann - 2020-11-01
    • status: open --> closed
    • Group: -->
     
  • Michel Zou

    Michel Zou - 2020-11-01

    thanks a lot!

     
  • Anonymous

    Anonymous - 2021-05-20

    When to release a version supporting Qt6?

     
  • Uwe Rathmann

    Uwe Rathmann - 2021-06-25
     
  • 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.

     
    • Mehdi Chinoune

      Mehdi Chinoune - 2022-02-01

      What do you mean by "CMake API"?
      Qwt use qmake to build. There is no other way to build it!

       
      • 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.

         
        • Anonymous

          Anonymous - 2022-02-02

          It compiled for me using CLion once I took out the 4 gl files you mentioned. What are your link errors?

           
          • Anonymous

            Anonymous - 2022-02-03

            Qwt itself builds fine, but linking against the * .so fails with a bunch of undefined references. to signals. (hence I suspect moc)

             
        • 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.

           
          • Anonymous

            Anonymous - 2022-02-03

            I'm using 6.2.0 (see CMakeLists.txt file where a tar is fetched from sourceforge)

             
        • Mehdi Chinoune

          Mehdi Chinoune - 2022-02-02

          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
    • Anonymous

      Anonymous - 2023-08-24

      Is there a fix for this? I'm still unable to use the QwtPlotGLCanvas with Qt 6.5.2 + Qwt 6.2.

       
      • Uwe Rathmann

        Uwe Rathmann - 2023-08-24

        QGLWidget has been replaced by QOpenGLWidget and has been removed with Qt6. So you have to go with the QOpenGL classes.i

         
  • 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...

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB