Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. completion
    Log in to post

    • QCompleter in QTableView: show always, even before user input
      General and Desktop • c++ tableview view completer completion • • azrdev  

      6
      0
      Votes
      6
      Posts
      3595
      Views

      @raven-worx said in QCompleter in QTableView: show always, even before user input: declare the m_Editor variable as mutable. This makes it compile (even though I'm not sure about the implications), but it doesn't help me: there is no Show event handled in editorEvent ever (tested with printf-debugging - yes, before the test for QLineEdit), I'm only getting Mouse events. @SGaist said in QCompleter in QTableView: show always, even before user input: Something like completer->popup()->show(); should do what you want. Nope, does not help. I figured (using qDebug, again), the place where I should put my popup-opening call is setEditorData. In there, I receive the QLineEdit and it's QCompleter: But I cannot make it show the popup. I tried now: completer->setCompletionPrefix(index.data(Qt::EditRole).toString()); completer->complete(); completer->popup()->show(); Note: Sometimes the popup is shown for a very short time, but immediately hides. When repeatedly entering & leaving edit mode this only works the first time.
    • UNSOLVED [Solved] How can I enrich completion on a project with another project
      General and Desktop • editor completion • • statquant  

      5
      0
      Votes
      5
      Posts
      860
      Views

      Hi and welcome to devnet, The button you are seeking can be found clicking on the "Topic Tools" button :)
    • UNSOLVED Program - code editor in QML
      QML and Qt Quick • qml completion code editor qscintilla2 • • AFreire  

      1
      0
      Votes
      1
      Posts
      479
      Views

      No one has replied

    • UNSOLVED Slow code completion when working with cmake & large library
      Tools • slow completion code • • victl  

      3
      0
      Votes
      3
      Posts
      898
      Views

      Hi and welcome to devnet, I'd recommend bringing that matter to the Qt Creator team through the qt-creator mailing list(don't' forget to subscribed first) or #qt-creator IRC channel.