brahmin
brahmin

Reputation: 588

qt delegate editor pops up with no parent

I'm using a QStyledItemDelegate in QTableView. I followed tutorial http://doc.qt.io/qt-5/qtwidgets-itemviews-spinboxdelegate-example.html . No problem for this.

I just changed QSpinBox to a custom widget I designed (let's call it MyWidget). It's also working, but now, whenever I trigger a cell of QTableView, editor MyWidget is poping up as a parentless widget would do. I've been trying to understand what makes the editor appear at cell's location but without any success.

In short : I'd like MyWidget to appear at cell's location and be part of QTableView. As QSpinBox does in tutorial example. Is it possible ? If so, how can I achieve this ? Thanks

Edit

Solved : parent argument routing from MyWidget to QWidget was wrong.

Upvotes: 0

Views: 126

Answers (1)

brahmin
brahmin

Reputation: 588

Solved : parent argument routing from MyWidget to QWidget was wrong.

Upvotes: 0

Related Questions