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. QCompleter
Forum Updated to NodeBB v4.3 + New Features

QCompleter

Scheduled Pinned Locked Moved Unsolved General and Desktop
qcompleter
1 Posts 1 Posters 622 Views
  • 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
    gabor53
    wrote on last edited by
    #1

    I use the following to complete words:

    #include "dialog.h"
    #include "ui_dialog.h"

    Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
    {
    ui->setupUi(this);

    //use the string list
    
    QStringList wordlist;
    //wordlist <<"book" << "bread" <<"beam" << "brick";
    
    
    StringCompleter = new QCompleter(wordlist,this);
    StringCompleter->setCaseSensitivity (Qt::CaseInsensitive);
    ui->lineEdit->setCompleter (StringCompleter);
    

    }

    Dialog::~Dialog()
    {
    delete ui;
    }
    This only provides options for the first word entered into lineEdit. How can I provide options for more than 1 word? Thank you for your help.

    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