QCompleter and QTextBrowser



  • Hello,
    I am attempting to use QCompleter connected to a QTextBrowser.
    double click on selected element of QCompleter works but press return do not send event to QTextBrowser. What did I miss ?

    qCompleter->setWidget(this);
    qCompleter->setModelSorting(QCompleter::UnsortedModel);
    qCompleter->setCompletionMode(QCompleter::UnfilteredPopupCompletion);
    qCompleter->setCaseSensitivity(Qt::CaseSensitive);
    qCompleter->setWrapAround(false);
    QObject::connect(qCompleter, SIGNAL(activated(QString)), this, SLOT(insertCompletion(QString)));

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you share a complete minimal compilable example that shows this behaviour ?

    What version of Qt are you using ?
    On what platform ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.