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. Getting compiliation error
Qt 6.11 is out! See what's new in the release blog

Getting compiliation error

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 440 Views 2 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by aha_1980
    #1

    #include "ui_file.h"

    class myWidget : public QDialog
    {
    Q_OBJECT

    public:
    
    myWidget(QWidget* parent);
    void mCreateContent();
    bool finalize();
    
    
    public slots:
    
    void slotProjectPathChanged(const QString& text);
    void slotFPGACBToggled(bool checked);
    void slotFPGABrowseButton(bool checked);
    void slotCBFPGAVendorActivated(int index);
    
    protected:
    
    void hideEvent(QHideEvent *event);
    

    signals:
    void updateNextButtonState(bool);

    private:
    
    Ui::up* _uiPtr;
    

    };

    #include "ui_file.h"

    class myWidget : public QDialog
    {
    Q_OBJECT

    public:
    
    myWidget(QWidget* parent);
    void mCreateContent();
    bool finalize();
    
    
    public slots:
    
    void slotProjectPathChanged(const QString& text);
    void slotFPGACBToggled(bool checked);
    void slotFPGABrowseButton(bool checked);
    void slotCBFPGAVendorActivated(int index);
    
    protected:
    
    void hideEvent(QHideEvent *event);
    

    signals:
    void updateNextButtonState(bool);

    private:
    
    Ui::up* _uiPtr;
    

    };
    error: 'signals' does not name a type
    signals:
    ^
    I dont know wny

    JonBJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      #include "ui_file.h"

      class myWidget : public QDialog
      {
      Q_OBJECT

      public:
      
      myWidget(QWidget* parent);
      void mCreateContent();
      bool finalize();
      
      
      public slots:
      
      void slotProjectPathChanged(const QString& text);
      void slotFPGACBToggled(bool checked);
      void slotFPGABrowseButton(bool checked);
      void slotCBFPGAVendorActivated(int index);
      
      protected:
      
      void hideEvent(QHideEvent *event);
      

      signals:
      void updateNextButtonState(bool);

      private:
      
      Ui::up* _uiPtr;
      

      };

      #include "ui_file.h"

      class myWidget : public QDialog
      {
      Q_OBJECT

      public:
      
      myWidget(QWidget* parent);
      void mCreateContent();
      bool finalize();
      
      
      public slots:
      
      void slotProjectPathChanged(const QString& text);
      void slotFPGACBToggled(bool checked);
      void slotFPGABrowseButton(bool checked);
      void slotCBFPGAVendorActivated(int index);
      
      protected:
      
      void hideEvent(QHideEvent *event);
      

      signals:
      void updateNextButtonState(bool);

      private:
      
      Ui::up* _uiPtr;
      

      };
      error: 'signals' does not name a type
      signals:
      ^
      I dont know wny

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Qt-Enthusiast
      Depending on just what you have included prior to the error, verify:

      Note that other libraries that define variables called signals or slots may cause compiler warnings and errors when compiled alongside a Qt-based application. To solve this problem, #undef the offending preprocessor symbol.

      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