Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to add or delete rows to tablewidget with buttons in Qt? Find the password.
How to add or delete rows to tablewidget with buttons in Qt? Find the password.
You can pass the click signal of the button to the insertRow slot of tablewidget to finish the work, but there is a problem. The parameters of the two are different. InsertRow needs a plastic parameter, and clicked cannot provide this parameter, so you should write a slot without parameters after inheriting tablewidget, but call insertRow of tablewidget.