qtqtablewidget

Placeholder in the QTableWidget


It is possible to set a placeholder for cell? I think it can implement by set QLineEdit for particular cell, but may be QTableWidget, or QTableWidgetItem can do this without custom widgets?


Solution

  • Use QTableWidget::setCellWidget() to set any widget for the cell.