Hi,
First, let me explain, I am an old timer coder, but have never dealt with QT.
My question is:
I created a QTableWidget using the gui creator (.ui) I then want to load data
into the 2 dim. array.
I attempted associated the slot "on_tablewidget_activated" and used
tableWidget->setItem to load the data, but when debugging, it never
enters the function on_tablewidget_activated.
How do I load data into the TableWidget?
Snippet of code:
Code:
******************************** .h file: Q_OBJECT public: ~Widget(); protected: private: Ui::Widget *ui; private slots: ******************************************* .cpp file #include "widget.h" #include "ui_widget.h" ui(new Ui::Widget) { ui->setupUi(this); } Widget::~Widget() { delete ui; } { switch (e->type()) { ui->retranslateUi(this); break; default: break; } } { tableWidget->setItem(1,1,item); }
thanks
John
