I thought, that item is a function to access to element of the Table and this is not an object to create it, isn't it?

this is header-file

.h
Qt Code:
  1. #ifndef WIDGET_H
  2. #define WIDGET_H
  3.  
  4. #include <QWidget>
  5. #include <QTableWidget>
  6. #include <QLabel>
  7. #include <QLineEdit>
  8. #include <QPushButton>
  9. #include <QTableWidgetItem>
  10.  
  11. class Widget : public QWidget
  12. {
  13. Q_OBJECT
  14.  
  15. public:
  16. Widget(QWidget *parent = 0);
  17. ~Widget();
  18.  
  19. private:
  20. QTableWidget * tbl;
  21. QTableWidgetItem * ptwi = 0;
  22. QStringList * lst;
  23. QLineEdit * rank;
  24. QPushButton * calculate;
  25.  
  26. int rank_of_Matrix=1;
  27. float x=0;
  28. float **A;
  29.  
  30.  
  31. private slots:
  32. void ok_clicked();
  33. void calculate_clicked();
  34. void Action_toArray();
  35. };
  36.  
  37. #endif // WIDGET_H
To copy to clipboard, switch view to plain text mode