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
Forum Updated to NodeBB v4.3 + New Features

How to include Qwt library to current project

Scheduled Pinned Locked Moved Solved C++ Gurus
7 Posts 3 Posters 5.5k 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 28 Mar 2018, 04:35 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!!!

    J 1 Reply Last reply 28 Mar 2018, 05:26
    0
    • T thippu
      28 Mar 2018, 04:35

      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!!!

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 28 Mar 2018, 05:26 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 28 Mar 2018, 05:41
      3
      • J JKSH
        28 Mar 2018, 05:26

        @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 28 Mar 2018, 05:41 last edited by
        #3

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

        J 1 Reply Last reply 28 Mar 2018, 05:55
        0
        • T thippu
          28 Mar 2018, 05:41

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

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 28 Mar 2018, 05:55 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 28 Mar 2018, 08:26 last edited by
            #5

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

            J 1 Reply Last reply 28 Mar 2018, 08:33
            0
            • T thippu
              28 Mar 2018, 08:26

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 28 Mar 2018, 08:33 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 29 Mar 2018, 04:37
              2
              • J jsulm
                28 Mar 2018, 08:33

                @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 29 Mar 2018, 04:37 last edited by
                #7

                @jsulm yes , I'm trying

                1 Reply Last reply
                0

                1/7

                28 Mar 2018, 04:35

                • Login

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