Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How to include Qwt library to current project
Qt 6.11 is out! See what's new in the release blog

How to include Qwt library to current project

Scheduled Pinned Locked Moved Solved C++ Gurus
7 Posts 3 Posters 6.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thippu
    wrote on last edited by
    #1

    I read all the info on http://qwt.sourceforge.net/qwtinstall.html#COMPILEANDLINKAPP
    Did execute as it is but if I do #include<dwf.h> in project it say fatal error:

    qwt.h: No such file or directory
    

    I will also show you the pro file

    
    QT       += core gui multimedia printsupport widgets
    CONFIG += qwt
    TARGET = qt_oscillioscope
    TEMPLATE = app
    INCLUDEPATH += C:\qwt2\qwt-6.1.3\include
    LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt
    # The following define makes your compiler emit warnings if you use
    # any feature of Qt which as been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    
    SOURCES += \
            main.cpp \
            mainwindow.cpp \
        qcustomplot.cpp
    
    HEADERS += \
            mainwindow.h \
        qcustomplot.h
    
    FORMS += \
            mainwindow.ui
    
    

    please help me!!!

    JKSHJ 1 Reply Last reply
    0
    • T thippu

      I read all the info on http://qwt.sourceforge.net/qwtinstall.html#COMPILEANDLINKAPP
      Did execute as it is but if I do #include<dwf.h> in project it say fatal error:

      qwt.h: No such file or directory
      

      I will also show you the pro file

      
      QT       += core gui multimedia printsupport widgets
      CONFIG += qwt
      TARGET = qt_oscillioscope
      TEMPLATE = app
      INCLUDEPATH += C:\qwt2\qwt-6.1.3\include
      LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt
      # The following define makes your compiler emit warnings if you use
      # any feature of Qt which as been marked as deprecated (the exact warnings
      # depend on your compiler). Please consult the documentation of the
      # deprecated API in order to know how to port your code away from it.
      DEFINES += QT_DEPRECATED_WARNINGS
      
      # You can also make your code fail to compile if you use deprecated APIs.
      # In order to do so, uncomment the following line.
      # You can also select to disable deprecated APIs only up to a certain version of Qt.
      #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
      
      
      SOURCES += \
              main.cpp \
              mainwindow.cpp \
          qcustomplot.cpp
      
      HEADERS += \
              mainwindow.h \
          qcustomplot.h
      
      FORMS += \
              mainwindow.ui
      
      

      please help me!!!

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @thippu said in How to include Qwt library to current project:

      CONFIG += qwt
      INCLUDEPATH += C:\qwt2\qwt-6.1.3\include
      LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt
      

      Instead of the 3 lines above, you can add just 1 line to your .pro file:

      include(C:/qwt2/qwt-6.1.3/features/qwt.prf)
      

      Also, in Qt it is best to use / instead of \ (So use "C:/qwt2/" instead of "C:\qwt2\")

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      T 1 Reply Last reply
      3
      • JKSHJ JKSH

        @thippu said in How to include Qwt library to current project:

        CONFIG += qwt
        INCLUDEPATH += C:\qwt2\qwt-6.1.3\include
        LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt
        

        Instead of the 3 lines above, you can add just 1 line to your .pro file:

        include(C:/qwt2/qwt-6.1.3/features/qwt.prf)
        

        Also, in Qt it is best to use / instead of \ (So use "C:/qwt2/" instead of "C:\qwt2\")

        T Offline
        T Offline
        thippu
        wrote on last edited by
        #3

        @JKSH Bro,Thank you that one line worked!
        How to get qwt designer included in the project

        JKSHJ 1 Reply Last reply
        0
        • T thippu

          @JKSH Bro,Thank you that one line worked!
          How to get qwt designer included in the project

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @thippu said in How to include Qwt library to current project:

          @JKSH Bro,Thank you that one line worked!

          Great!

          How to get qwt designer included in the project

          I haven't done this myself so I don't know, sorry. See if the user manual helps: http://qwt.sourceforge.net/qwtinstall.html

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thippu
            wrote on last edited by
            #5

            @SGaist , @aha_1980 , could you tell me how to include the qwt widgets to qt designer

            jsulmJ 1 Reply Last reply
            0
            • T thippu

              @SGaist , @aha_1980 , could you tell me how to include the qwt widgets to qt designer

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @thippu Did you follow the link @JKSH gave you? You will find there information about how to install designer plugins for QWT...

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              T 1 Reply Last reply
              2
              • jsulmJ jsulm

                @thippu Did you follow the link @JKSH gave you? You will find there information about how to install designer plugins for QWT...

                T Offline
                T Offline
                thippu
                wrote on last edited by
                #7

                @jsulm yes , I'm trying

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved