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 not working in Qt 5.0.0
Forum Updated to NodeBB v4.3 + New Features

QCompleter not working in Qt 5.0.0

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    Macro
    wrote on last edited by
    #1

    Hi..

    I have to set the auto completion for the QLineEdit, so i tried using QCompleter. The code shown below works fine in Qt 4.8.4.

    But when i try the same code in Qt 5.0.0 (32 bit), it just throws me an error.
    QLineEdit:: cannot convert parameter 1 from QCompleter to QCompleterExample.

    why is it not working with Qt 5.0.0.? Should i change anything in the code for working with Qt 5.0.0? Please post your suggestions.

    @QStringList wordList;
    wordList << "alpha" << "omega" << "omicron" << "zeta";

    QLineEdit *lineEdit = new QLineEdit(this);

    QCompleter *completer = new QCompleter(wordList, this);
    completer->setCaseSensitivity(Qt::CaseInsensitive);
    lineEdit->setCompleter(completer);@

    Thanks & Regards

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Might be a bug. Please consider "reporting":https://qt-project.org/wiki/ReportingBugsInQt it.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Macro
        wrote on last edited by
        #3

        Thanks for your reply sierdzio,

        I have filed a bug report for this. please check "Bug - QCompleter not working in Qt 5.0":https://bugreports.qt-project.org/browse/QTBUG-30549

        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