Hello,
How to add tooltips to QCompleter items??
Printable View
Hello,
How to add tooltips to QCompleter items??
Did you try setting the tooltip role for the model you are passing to QCompleter?
I tried to get ToolTip using below code
Code:
model->item(0)->setToolTip("Tool Tip test"); completer->setModel(model); completer->setCaseSensitivity(Qt::CaseInsensitive); ui->lineEdit->setCompleter(completer);
Code completion works but ToolTip is missing.
I used QStandardItemModel because it's possible to set tool tip for QStandardItem.
Hi,
I need also this feature, similar to VS C# code completion, completion items + tooltips for every compeltion.
Did you find any solution?
Greetings!