Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Corretade way to extend a component

    General and Desktop
    1
    1
    390
    Loading More Posts
    • 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.
    • I
      insdo last edited by

      Hello. I tried to create an inherited component of QLineEdit class. But it is giving error: undefined symbol Link2019 external. I do not know what can be. For I have put my diretrize "include".
      @
      #ifndef MEUCAMPO_H
      #define MEUCAMPO_H

      #include <QLineEdit>
       
      class MeuCampo : public QLineEdit
      {
          Q_OBJECT
      public:
          explicit MeuCampo(QWidget *parent = 0);
       
      signals:
       
      public slots:
       
      };
       
      #endif // MEUCAMPO_H
       
      #include "meucampo.h"
       
      MeuCampo::MeuCampo(QWidget *parent) :
          QLineEdit(parent)
      {
      }
      

      @

      1 Reply Last reply Reply Quote 0
      • First post
        Last post