Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Understanding qcompleter
Forum Updated to NodeBB v4.3 + New Features

Understanding qcompleter

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 487 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    Please help to understand QCompleter
    Here is the code used to set up the completer
    @
    m_completer = new QCompleter(this);
    m_fileSystemModel = new QFileSystemModel(m_completer);
    m_fileSystemModel->setRootPath("");
    m_completer->setModel(m_fileSystemModel);
    m_completer->setCompletionMode(QCompleter::PopupCompletion);
    m_completer->setMaxVisibleItems(10);
    m_completer->setWrapAround(true);
    ui.lineEdit->setCompleter(m_completer);
    @
    When I run this I seem to get inconsistent behaviour
    At time the completion popup is not displayed

    Is there anything obviously wrong with my code or has anyone else any ideas as to why this happens

    I have built the completer example supplied by Qt and the same behaviour happens

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved