I' ve encountered this problem once again while trying to create a signal and slot
and yes all functions are stated in window.cpp

window.h
Qt Code:
  1. /***************************************************************************
  2.  * Copyright (C) 2007 by adriaan,,, *
  3.  * adriaan@Tornado *
  4.  * *
  5.  * This program is free software; you can redistribute it and/or modify *
  6.  * it under the terms of the GNU General Public License as published by *
  7.  * the Free Software Foundation; either version 2 of the License, or *
  8.  * (at your option) any later version. *
  9.  * *
  10.  * This program is distributed in the hope that it will be useful, *
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13.  * GNU General Public License for more details. *
  14.  * *
  15.  * You should have received a copy of the GNU General Public License *
  16.  * along with this program; if not, write to the *
  17.  * Free Software Foundation, Inc., *
  18.  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  19.  ***************************************************************************/
  20.  
  21. #pragma once
  22.  
  23. #include <QApplication>
  24. #include <QtGui>
  25. #include <QWidget>
  26. #include <QObject>
  27. #include <QComboBox>
  28. #include <QLineEdit>
  29. #include <QtGui>
  30. #include <QGridLayout>
  31. #include <QGroupBox>
  32. #include <QPushButton>
  33. #include <QLabel>
  34.  
  35.  
  36. class window : public QWidget
  37. {
  38.  
  39. Q_OBJECT
  40.  
  41. public:
  42.  
  43. window(QWidget * parent = NULL);
  44.  
  45. ~window();
  46.  
  47.  
  48. public slots:
  49.  
  50. void select(int choice);
  51.  
  52.  
  53. signals:
  54.  
  55. void createanswer(int al);
  56.  
  57.  
  58. private:
  59.  
  60. QLineEdit * nameline;
  61.  
  62. QLineEdit * typeline;
  63.  
  64. QLineEdit * answerline;
  65.  
  66. };
To copy to clipboard, switch view to plain text mode