Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. undefined reference to'QCPAxisTickerDateTime'
Forum Updated to NodeBB v4.3 + New Features

undefined reference to'QCPAxisTickerDateTime'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 2 Posters 548 Views
  • 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.
  • Q Offline
    Q Offline
    quzhuo
    wrote on last edited by
    #1

    231.png What is the reason for this, please

    jsulmJ 1 Reply Last reply
    0
    • Q quzhuo

      231.png What is the reason for this, please

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

      @quzhuo Looks like you're not linking qcustomplot library. Please show your pro or CMakeLists.txt file.

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

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @quzhuo Looks like you're not linking qcustomplot library. Please show your pro or CMakeLists.txt file.

        Q Offline
        Q Offline
        quzhuo
        wrote on last edited by
        #3

        @jsulm !60d17c89-fa9e-483b-98e2-4dc930dd7f04-image.png 12314.png

        jsulmJ 1 Reply Last reply
        0
        • Q quzhuo

          @jsulm !60d17c89-fa9e-483b-98e2-4dc930dd7f04-image.png 12314.png

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

          @quzhuo Please post text, not pictures. And please post whole pro file!
          Did you add the qcustomplot.cpp file to your project like shown here: https://www.qcustomplot.com/index.php/tutorials/settingup ?

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

          Q 1 Reply Last reply
          0
          • jsulmJ jsulm

            @quzhuo Please post text, not pictures. And please post whole pro file!
            Did you add the qcustomplot.cpp file to your project like shown here: https://www.qcustomplot.com/index.php/tutorials/settingup ?

            Q Offline
            Q Offline
            quzhuo
            wrote on last edited by
            #5

            @jsulm @jsulm I've added a QCustomPlot file to my project
            FORMS +=
            $$PWD/sealstatisticswidget.ui
            HEADERS +=
            $$PWD/qcustomplot.h
            $$PWD/sealstatisticswidget.h
            SOURCES +=
            $$PWD/qcustomplot.cpp
            $$PWD/sealstatisticswidget.cpp
            QT += printsupport
            How do I send the whole project file, please

            jsulmJ 1 Reply Last reply
            0
            • Q quzhuo

              @jsulm @jsulm I've added a QCustomPlot file to my project
              FORMS +=
              $$PWD/sealstatisticswidget.ui
              HEADERS +=
              $$PWD/qcustomplot.h
              $$PWD/sealstatisticswidget.h
              SOURCES +=
              $$PWD/qcustomplot.cpp
              $$PWD/sealstatisticswidget.cpp
              QT += printsupport
              How do I send the whole project file, please

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

              @quzhuo said in undefined reference to'QCPAxisTickerDateTime':

              How do I send the whole project file

              What do you mean?
              Just post the content of the file here as text.
              Why do you have $$PWD in front of each file?

              Did you do a complete rebuild after changing the pro file?

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

              Q 1 Reply Last reply
              0
              • jsulmJ jsulm

                @quzhuo said in undefined reference to'QCPAxisTickerDateTime':

                How do I send the whole project file

                What do you mean?
                Just post the content of the file here as text.
                Why do you have $$PWD in front of each file?

                Did you do a complete rebuild after changing the pro file?

                Q Offline
                Q Offline
                quzhuo
                wrote on last edited by
                #7

                @jsulm Thanks, I didn't rebuild it after I changed the pro file, and I didn't report an error after rebuilding it just now.Sorry to bother you.

                jsulmJ 1 Reply Last reply
                0
                • Q quzhuo

                  @jsulm Thanks, I didn't rebuild it after I changed the pro file, and I didn't report an error after rebuilding it just now.Sorry to bother you.

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

                  @quzhuo said in undefined reference to'QCPAxisTickerDateTime':

                  Sorry to bother you

                  No problem.
                  Just remember that after changing pro file you need to rebuild :-)

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

                  1 Reply Last reply
                  2

                  • Login

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