Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined referance to class::function
QtWS25 Last Chance

Undefined referance to class::function

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtdesignerqtwidgetsundefined referclass
10 Posts 3 Posters 5.5k 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.
  • F Offline
    F Offline
    fortyff
    wrote on 6 Sept 2016, 12:33 last edited by
    #1

    Hi everyone,
    I made a gui application. Normally, it works fine. However, I've got error that I mentioned in the title, when I use additional widgets.

    What I mean that I say additional widgets is :

    I have installed a framework that uses the Qt Designer which is called as caQtDM Framework.
    In normal way, it is built by ownway. I mean, there is a script that opens Qt Designer, and makes ui files. There are some additional properties in Property Editor. After creating ui files with that script, there is another script which opens the created ui files.

    P.S : The widgets can't be used by openning Qt Designer without the script that I mentioned.

    My aim is that by using these widgets, I want to make an example. However, I want to use the following property in order to create some algorithms for several purposes :

    Go to slot...
    

    What I have done is :

    • I created a Qt Widget Application in normal way.
    • I used the framework's script to open Qt Designer and use the widgets on the .ui file that I created.
    • I included the paths of the header files for the widgets that I used. I did this by adding this command into the .pro file :
    INCLUDEPATH += /../../../destination_for_header_files
    

    However, when I debug the project I've get this error on the "ui_mainwindow.h" file :

    undefined referance to 'caLabel::caLabel(QWidget*)'
    collect2: error: ld returned 1 exit status
    

    The code is below :

    #ifndef UI_MAINWINDOW_H
    #define UI_MAINWINDOW_H
    
    #include <QtCore/QVariant>
    #include <QtWidgets/QAction>
    #include <QtWidgets/QApplication>
    #include <QtWidgets/QButtonGroup>
    #include <QtWidgets/QHeaderView>
    #include <QtWidgets/QMainWindow>
    #include <QtWidgets/QMenuBar>
    #include <QtWidgets/QStatusBar>
    #include <QtWidgets/QToolBar>
    #include <QtWidgets/QWidget>
    
    #include "calabel.h"
    
    QT_BEGIN_NAMESPACE
    
    class Ui_MainWindow
    {
    public:
        QWidget *centralWidget;
        caLabel *calabel;
        QMenuBar *menuBar;
        QToolBar *mainToolBar;
        QStatusBar *statusBar;
    
        void setupUi(QMainWindow *MainWindow)
        {
            if (MainWindow->objectName().isEmpty())
                MainWindow->setObjectName(QStringLiteral("MainWindow"));
            MainWindow->resize(400, 300);
            centralWidget = new QWidget(MainWindow);
            centralWidget->setObjectName(QStringLiteral("centralWidget"));
    43      calabel = new caLabel(centralWidget);  // Problem is in here ****
            calabel->setObjectName(QStringLiteral("calabel"));
            calabel->setGeometry(QRect(90, 40, 90, 28));
            MainWindow->setCentralWidget(centralWidget);
            menuBar = new QMenuBar(MainWindow);
            menuBar->setObjectName(QStringLiteral("menuBar"));
            menuBar->setGeometry(QRect(0, 0, 400, 24));
            MainWindow->setMenuBar(menuBar);
            mainToolBar = new QToolBar(MainWindow);
            mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
            MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
            statusBar = new QStatusBar(MainWindow);
            statusBar->setObjectName(QStringLiteral("statusBar"));
            MainWindow->setStatusBar(statusBar);
    
            retranslateUi(MainWindow);
    
            QMetaObject::connectSlotsByName(MainWindow);
        } // setupUi
    

    I mentioned the problem by adding the line number in front of the line and expressed as there is problem.

    I thought, it may be caused due to finding header files directory. So, I also included the header file as "Add existing file" option, but the error still exists.

    If there is any suggestion, I'll be glad to know that.

    Thanks in advance..

    K 1 Reply Last reply 6 Sept 2016, 12:37
    0
    • F fortyff
      6 Sept 2016, 12:33

      Hi everyone,
      I made a gui application. Normally, it works fine. However, I've got error that I mentioned in the title, when I use additional widgets.

      What I mean that I say additional widgets is :

      I have installed a framework that uses the Qt Designer which is called as caQtDM Framework.
      In normal way, it is built by ownway. I mean, there is a script that opens Qt Designer, and makes ui files. There are some additional properties in Property Editor. After creating ui files with that script, there is another script which opens the created ui files.

      P.S : The widgets can't be used by openning Qt Designer without the script that I mentioned.

      My aim is that by using these widgets, I want to make an example. However, I want to use the following property in order to create some algorithms for several purposes :

      Go to slot...
      

      What I have done is :

      • I created a Qt Widget Application in normal way.
      • I used the framework's script to open Qt Designer and use the widgets on the .ui file that I created.
      • I included the paths of the header files for the widgets that I used. I did this by adding this command into the .pro file :
      INCLUDEPATH += /../../../destination_for_header_files
      

      However, when I debug the project I've get this error on the "ui_mainwindow.h" file :

      undefined referance to 'caLabel::caLabel(QWidget*)'
      collect2: error: ld returned 1 exit status
      

      The code is below :

      #ifndef UI_MAINWINDOW_H
      #define UI_MAINWINDOW_H
      
      #include <QtCore/QVariant>
      #include <QtWidgets/QAction>
      #include <QtWidgets/QApplication>
      #include <QtWidgets/QButtonGroup>
      #include <QtWidgets/QHeaderView>
      #include <QtWidgets/QMainWindow>
      #include <QtWidgets/QMenuBar>
      #include <QtWidgets/QStatusBar>
      #include <QtWidgets/QToolBar>
      #include <QtWidgets/QWidget>
      
      #include "calabel.h"
      
      QT_BEGIN_NAMESPACE
      
      class Ui_MainWindow
      {
      public:
          QWidget *centralWidget;
          caLabel *calabel;
          QMenuBar *menuBar;
          QToolBar *mainToolBar;
          QStatusBar *statusBar;
      
          void setupUi(QMainWindow *MainWindow)
          {
              if (MainWindow->objectName().isEmpty())
                  MainWindow->setObjectName(QStringLiteral("MainWindow"));
              MainWindow->resize(400, 300);
              centralWidget = new QWidget(MainWindow);
              centralWidget->setObjectName(QStringLiteral("centralWidget"));
      43      calabel = new caLabel(centralWidget);  // Problem is in here ****
              calabel->setObjectName(QStringLiteral("calabel"));
              calabel->setGeometry(QRect(90, 40, 90, 28));
              MainWindow->setCentralWidget(centralWidget);
              menuBar = new QMenuBar(MainWindow);
              menuBar->setObjectName(QStringLiteral("menuBar"));
              menuBar->setGeometry(QRect(0, 0, 400, 24));
              MainWindow->setMenuBar(menuBar);
              mainToolBar = new QToolBar(MainWindow);
              mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
              MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
              statusBar = new QStatusBar(MainWindow);
              statusBar->setObjectName(QStringLiteral("statusBar"));
              MainWindow->setStatusBar(statusBar);
      
              retranslateUi(MainWindow);
      
              QMetaObject::connectSlotsByName(MainWindow);
          } // setupUi
      

      I mentioned the problem by adding the line number in front of the line and expressed as there is problem.

      I thought, it may be caused due to finding header files directory. So, I also included the header file as "Add existing file" option, but the error still exists.

      If there is any suggestion, I'll be glad to know that.

      Thanks in advance..

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 6 Sept 2016, 12:37 last edited by
      #2

      @fortyff said in Undefined referance to class::function:

        calabel = new caLabel(centralWidget);  // Problem is in here ****
      

      You have declared a constructor for the class that accepts a widget as an argument caLabel::caLabel(QWidget*), but you haven't defined such in the .cpp file. Do so and rebuild and the error will disappear.

      Read and abide by the Qt Code of Conduct

      F 1 Reply Last reply 6 Sept 2016, 13:13
      2
      • K kshegunov
        6 Sept 2016, 12:37

        @fortyff said in Undefined referance to class::function:

          calabel = new caLabel(centralWidget);  // Problem is in here ****
        

        You have declared a constructor for the class that accepts a widget as an argument caLabel::caLabel(QWidget*), but you haven't defined such in the .cpp file. Do so and rebuild and the error will disappear.

        F Offline
        F Offline
        fortyff
        wrote on 6 Sept 2016, 13:13 last edited by fortyff 9 Jun 2016, 13:21
        #3

        @kshegunov Thanks for the reply. I did as you said. I included the source files of that widget which is "calabel.cpp". However, I now have these error in the source file that I just included :

        undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
        undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
        undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
        
        undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
        undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
        undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
        collect2: error: ld returned 1 exit status
        

        There are the same errors occured in the "esimplelabel.cpp" file, but I didn't write down here, since it'll consume too much place.

        The source file and the lines where the errors occur are below :

        #include "calabel.h"
        #include "alarmdefs.h"
        #include <QEvent>
        
        5  caLabel::caLabel(QWidget *parent) : ESimpleLabel(parent)  // Problem is in here
        {
            setFontScaleMode(WidthAndHeight);
            thisBackColor = Qt::gray;
            thisForeColor = Qt::black;
            thisBackColorOld = Qt::black;
            thisForeColorOld = Qt::black;
            thisColorMode=Static;
            oldColorMode =Static;
            setColorMode(Static);
            thisVisibility = StaticV;
        }
        
        void caLabel::setColors(QColor bg, QColor fg)
        {
            if((bg != thisBackColorOld) || (fg != thisForeColorOld)) {
                thisStyle = "background-color: rgba(%1, %2, %3, %4); color: rgba(%5, %6, %7, %8);";
                thisStyle = thisStyle.arg(bg.red()).arg(thisBackColor.green()).arg(bg.blue()).arg(bg.alpha()).
                        arg(fg.red()).arg(fg.green()).arg(fg.blue()).arg(fg.alpha());
                setStyleSheet(thisStyle);
                // oups, was forgotten
                thisBackColorOld = bg;
                thisForeColorOld = fg;
            }
        
            if(thisStyle != oldStyle || thisColorMode != oldColorMode) {
                setStyleSheet(thisStyle);
                oldStyle = thisStyle;
                update();
            }
        }
        
        void caLabel::setBackground(QColor c)
        {
            thisBackColor = c;
            setColors(thisBackColor, thisForeColor);
        }
        
        void caLabel::setForeground(QColor c)
        {
            thisForeColor = c;
            setColors(thisBackColor, thisForeColor);
        }
        
        void caLabel::setAlarmColors(short status)
        {
            QColor c;
            switch (status) {
        
            case NO_ALARM:
                c=AL_GREEN;
                break;
            case MINOR_ALARM:
                c=AL_YELLOW;
                break;
            case MAJOR_ALARM:
                c=AL_RED;
                break;
            case INVALID_ALARM:
            case NOTCONNECTED:
                c=AL_WHITE;
                break;
            default:
                c=AL_DEFAULT;
                break;
            }
            setColors(thisBackColor, c);
        }
        
        esimplelabel.h file is below :
        #ifndef ESIMPLELABEL_H
        #define ESIMPLELABEL_H
        
        #include <QLabel>
        #include <QStyleOptionFrame>
        #include <QStyle>
        #include <QtDebug>
        
        #include <qtcontrols_global.h>
        #include "fontscalingwidget.h"
        
        /** \brief A QLabel that provides the font scaling feature.
         *
         * This class is a QLabel that scales its fonts when resized.
         * This is a base font scaling class for all the objects that need to implement the 
         * font scaling features, such as ELabel.
         * You might have a look at those classes.
         * If your label is <em>left</em> or <em>right</em> aligned, then consider increasing the
         * lateralBorderWidth if you experience some problems of font scaling: an ESimpleLabel with
         * a thick <em>boxed frame</em> might have its string not perfectly fit the space in some circumstances.
         * <br/>Font scaling <em>labels</em> are tailored for <em>center aligned</em>
         * text only. The ESimpleLabel is constructed with a horizontal centered alignment if scalingMode
         * property is different from ESimpleLabel::None, and a right alignment otherwise.
         * 
         * @see ELabel
         * @see EFlag
         * @see FontScalingWidget
         *
         */
        30 class QTCON_EXPORT ESimpleLabel : public QLabel, public FontScalingWidget  // Problem is here ***
        {
          /* scalable fonts */
          Q_PROPERTY(bool fontScaleEnabled READ fontScaleEnabled DESIGNABLE false)
          Q_PROPERTY(double botTopBorderWidth READ botTopBorderWidth WRITE setBotTopBorderWidth DESIGNABLE fontScaleEnabled)
          Q_PROPERTY(double lateralBorderWidth READ lateralBorderWidth WRITE setLateralBorderWidth DESIGNABLE fontScaleEnabled)
          Q_PROPERTY(double fontScaleFactor READ fontScaleFactor WRITE setFontScaleFactor  DESIGNABLE false)
          Q_PROPERTY(ScaleMode fontScaleMode READ fontScaleMode WRITE setFontScaleMode)
          
          Q_ENUMS(ScaleMode)
          Q_OBJECT
          public:
        	
                enum ScaleMode { None, Height, WidthAndHeight};
        	
        	ESimpleLabel(QWidget *parent);
        	
        	ESimpleLabel(const QString& text, QWidget *parent);
        	
        	virtual void setText(const QString&);
        	
            QString text() const {return QLabel::text(); }
        	
        	QSize calculateTextSpace();	
        55	void setFontScaleMode(ScaleMode m) { FontScalingWidget::setScaleMode((int) m); } // Problem is here   *******
                ScaleMode fontScaleMode() { return (ScaleMode) FontScalingWidget::scaleMode();  }	
          protected:
        	virtual bool event(QEvent *);
        	
        	virtual QSize sizeHint() const;
        	
        	virtual QSize minimumSizeHint() const;
        };
        #endif
        

        I know, it is already consuming too much place, but I thought, it may be helpful to figure the problem out.

        Thanks in advance..

        K 1 Reply Last reply 6 Sept 2016, 15:36
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 6 Sept 2016, 13:16 last edited by
          #4

          hi
          after u added the cpp file, did you run
          qmake?

          http://stackoverflow.com/questions/2555816/qt-linker-error-undefined-reference-to-vtable/3650758#3650758

          also, you could completely clean the build folder to make sure all is re-created.

          F 1 Reply Last reply 6 Sept 2016, 13:23
          1
          • M mrjj
            6 Sept 2016, 13:16

            hi
            after u added the cpp file, did you run
            qmake?

            http://stackoverflow.com/questions/2555816/qt-linker-error-undefined-reference-to-vtable/3650758#3650758

            also, you could completely clean the build folder to make sure all is re-created.

            F Offline
            F Offline
            fortyff
            wrote on 6 Sept 2016, 13:23 last edited by
            #5

            @mrjj Saying that run qmake again , I just run the program, and it runs qmake by itself, as far as I know. Am I right ?

            Now, I just "vtable" error.

            I guess so, it is better to clean or re-built the program again. Thanks for the recommendation.

            M 1 Reply Last reply 6 Sept 2016, 13:27
            0
            • F fortyff
              6 Sept 2016, 13:23

              @mrjj Saying that run qmake again , I just run the program, and it runs qmake by itself, as far as I know. Am I right ?

              Now, I just "vtable" error.

              I guess so, it is better to clean or re-built the program again. Thanks for the recommendation.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 6 Sept 2016, 13:27 last edited by
              #6

              @fortyff

              • I just run the program, and it runs qmake by itself, as far as I know. Am I right ?

              yes but it seems to sometimes cache files/info.
              I often see it when i add the O_OBJECT macro.
              Its not really detected before i run qmake manually.
              Also when editing .pro file it sometimes is not applied 100% automatic.

              So sometimes I must clean folder, run qmake to stop the complaining.
              (on windows. could be local issue for me)

              F 1 Reply Last reply 6 Sept 2016, 13:38
              0
              • M mrjj
                6 Sept 2016, 13:27

                @fortyff

                • I just run the program, and it runs qmake by itself, as far as I know. Am I right ?

                yes but it seems to sometimes cache files/info.
                I often see it when i add the O_OBJECT macro.
                Its not really detected before i run qmake manually.
                Also when editing .pro file it sometimes is not applied 100% automatic.

                So sometimes I must clean folder, run qmake to stop the complaining.
                (on windows. could be local issue for me)

                F Offline
                F Offline
                fortyff
                wrote on 6 Sept 2016, 13:38 last edited by
                #7

                @mrjj I understand. I just cleaned the folder and run it again, but the errors still occur.
                I guess, now, I should research what exactly "vtable error" is.

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 6 Sept 2016, 13:42 last edited by
                  #8

                  The link i provided does talk about different causes.
                  Often its something simple :)

                  F 1 Reply Last reply 6 Sept 2016, 13:44
                  0
                  • M mrjj
                    6 Sept 2016, 13:42

                    The link i provided does talk about different causes.
                    Often its something simple :)

                    F Offline
                    F Offline
                    fortyff
                    wrote on 6 Sept 2016, 13:44 last edited by
                    #9

                    @mrjj Thanks a lot then, I'll try to figure it out :)

                    1 Reply Last reply
                    1
                    • F fortyff
                      6 Sept 2016, 13:13

                      @kshegunov Thanks for the reply. I did as you said. I included the source files of that widget which is "calabel.cpp". However, I now have these error in the source file that I just included :

                      undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
                      undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
                      undefined reference to `vtable for caLabel'   line 5  /from calabel.h file
                      
                      undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
                      undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
                      undefined reference to `vtable for ESimpleLabel'   line 30 /from esimplelabel.h file
                      collect2: error: ld returned 1 exit status
                      

                      There are the same errors occured in the "esimplelabel.cpp" file, but I didn't write down here, since it'll consume too much place.

                      The source file and the lines where the errors occur are below :

                      #include "calabel.h"
                      #include "alarmdefs.h"
                      #include <QEvent>
                      
                      5  caLabel::caLabel(QWidget *parent) : ESimpleLabel(parent)  // Problem is in here
                      {
                          setFontScaleMode(WidthAndHeight);
                          thisBackColor = Qt::gray;
                          thisForeColor = Qt::black;
                          thisBackColorOld = Qt::black;
                          thisForeColorOld = Qt::black;
                          thisColorMode=Static;
                          oldColorMode =Static;
                          setColorMode(Static);
                          thisVisibility = StaticV;
                      }
                      
                      void caLabel::setColors(QColor bg, QColor fg)
                      {
                          if((bg != thisBackColorOld) || (fg != thisForeColorOld)) {
                              thisStyle = "background-color: rgba(%1, %2, %3, %4); color: rgba(%5, %6, %7, %8);";
                              thisStyle = thisStyle.arg(bg.red()).arg(thisBackColor.green()).arg(bg.blue()).arg(bg.alpha()).
                                      arg(fg.red()).arg(fg.green()).arg(fg.blue()).arg(fg.alpha());
                              setStyleSheet(thisStyle);
                              // oups, was forgotten
                              thisBackColorOld = bg;
                              thisForeColorOld = fg;
                          }
                      
                          if(thisStyle != oldStyle || thisColorMode != oldColorMode) {
                              setStyleSheet(thisStyle);
                              oldStyle = thisStyle;
                              update();
                          }
                      }
                      
                      void caLabel::setBackground(QColor c)
                      {
                          thisBackColor = c;
                          setColors(thisBackColor, thisForeColor);
                      }
                      
                      void caLabel::setForeground(QColor c)
                      {
                          thisForeColor = c;
                          setColors(thisBackColor, thisForeColor);
                      }
                      
                      void caLabel::setAlarmColors(short status)
                      {
                          QColor c;
                          switch (status) {
                      
                          case NO_ALARM:
                              c=AL_GREEN;
                              break;
                          case MINOR_ALARM:
                              c=AL_YELLOW;
                              break;
                          case MAJOR_ALARM:
                              c=AL_RED;
                              break;
                          case INVALID_ALARM:
                          case NOTCONNECTED:
                              c=AL_WHITE;
                              break;
                          default:
                              c=AL_DEFAULT;
                              break;
                          }
                          setColors(thisBackColor, c);
                      }
                      
                      esimplelabel.h file is below :
                      #ifndef ESIMPLELABEL_H
                      #define ESIMPLELABEL_H
                      
                      #include <QLabel>
                      #include <QStyleOptionFrame>
                      #include <QStyle>
                      #include <QtDebug>
                      
                      #include <qtcontrols_global.h>
                      #include "fontscalingwidget.h"
                      
                      /** \brief A QLabel that provides the font scaling feature.
                       *
                       * This class is a QLabel that scales its fonts when resized.
                       * This is a base font scaling class for all the objects that need to implement the 
                       * font scaling features, such as ELabel.
                       * You might have a look at those classes.
                       * If your label is <em>left</em> or <em>right</em> aligned, then consider increasing the
                       * lateralBorderWidth if you experience some problems of font scaling: an ESimpleLabel with
                       * a thick <em>boxed frame</em> might have its string not perfectly fit the space in some circumstances.
                       * <br/>Font scaling <em>labels</em> are tailored for <em>center aligned</em>
                       * text only. The ESimpleLabel is constructed with a horizontal centered alignment if scalingMode
                       * property is different from ESimpleLabel::None, and a right alignment otherwise.
                       * 
                       * @see ELabel
                       * @see EFlag
                       * @see FontScalingWidget
                       *
                       */
                      30 class QTCON_EXPORT ESimpleLabel : public QLabel, public FontScalingWidget  // Problem is here ***
                      {
                        /* scalable fonts */
                        Q_PROPERTY(bool fontScaleEnabled READ fontScaleEnabled DESIGNABLE false)
                        Q_PROPERTY(double botTopBorderWidth READ botTopBorderWidth WRITE setBotTopBorderWidth DESIGNABLE fontScaleEnabled)
                        Q_PROPERTY(double lateralBorderWidth READ lateralBorderWidth WRITE setLateralBorderWidth DESIGNABLE fontScaleEnabled)
                        Q_PROPERTY(double fontScaleFactor READ fontScaleFactor WRITE setFontScaleFactor  DESIGNABLE false)
                        Q_PROPERTY(ScaleMode fontScaleMode READ fontScaleMode WRITE setFontScaleMode)
                        
                        Q_ENUMS(ScaleMode)
                        Q_OBJECT
                        public:
                      	
                              enum ScaleMode { None, Height, WidthAndHeight};
                      	
                      	ESimpleLabel(QWidget *parent);
                      	
                      	ESimpleLabel(const QString& text, QWidget *parent);
                      	
                      	virtual void setText(const QString&);
                      	
                          QString text() const {return QLabel::text(); }
                      	
                      	QSize calculateTextSpace();	
                      55	void setFontScaleMode(ScaleMode m) { FontScalingWidget::setScaleMode((int) m); } // Problem is here   *******
                              ScaleMode fontScaleMode() { return (ScaleMode) FontScalingWidget::scaleMode();  }	
                        protected:
                      	virtual bool event(QEvent *);
                      	
                      	virtual QSize sizeHint() const;
                      	
                      	virtual QSize minimumSizeHint() const;
                      };
                      #endif
                      

                      I know, it is already consuming too much place, but I thought, it may be helpful to figure the problem out.

                      Thanks in advance..

                      K Offline
                      K Offline
                      kshegunov
                      Moderators
                      wrote on 6 Sept 2016, 15:36 last edited by
                      #10

                      @fortyff said in Undefined referance to class::function:

                      There are the same errors occured in the "esimplelabel.cpp" file, but I didn't write down here, since it'll consume too much place.

                      Make sure you have all virtual functions that are declared defined. While a declaration of a regular function without a definition is perfectly valid (until it's called), that's not true for virtual methods.

                      Read and abide by the Qt Code of Conduct

                      1 Reply Last reply
                      1

                      5/10

                      6 Sept 2016, 13:23

                      • Login

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