Jūs esate


Problem with QTableWidgetItem and QTableWidget

I have a small problem with QTableWidget and QTableWidgetItem. I have a QHash<QString, QString> downloadQueue. There is at least one entry inside downloadQueue. The point is, that items inside downloadQueue are not added to the QTableWidget. I don't know  why.
void MDIChildWindow::regenerateTabs() {


int row = 0;

Qt. How to create a contex menu for QTableWidget?

Add a method definition into your .h file:
private slots: void cool_slot();
Add a line in the constructor of the class:
Then click on your QTableWidget component and add a method for your customContextMenuRequested(QPoint pos) event (right click and select Go to slot...):
void MDIChildWindow::on_tableWidgetRemoteSite_customContextMenuRequested(QPoint pos)


Subscribe to qt