hello... in my data() overriding i have a column where i must display a clickable text in everyitem that opens a QDialog when clicked... im trying to use a QLabel for that. The QDialog is already done too. (ActiveLabel already have the clicked() support)
In this example im returning just the text of the QLabel using Qt:isplayRole, but i want this text to open the sentToDialog when clicked, can someone help me on how is that possible?
Qt Code:
if (column == SenderColumn) { switch (role) { case Qt::DisplayRole: SentToDialog* sentToDialog = new SentToDialog(); ActiveLabel* reglabel = new ActiveLabel(sentToDialog); return reglabel->text(); } }To copy to clipboard, switch view to plain text mode
Bookmarks