Important: Please read the Qt Code of Conduct -

QTextEdit and predictive input mode, part 2

  • This post continues the discussion, started in "my previous post":

    I've found some other issues, regarding this problem. To be concrete, I wrote some test code, and you could download the sources and binaries from "here":

    This test shows the fullscreen QTextEdit widget, where you can type any sort of text and the 'Show' softkey. This softkey shows the message box with the text, from the editor widget. The code is simple, and doesn't set up any widget's properties.

    Now, ensure that T9 is on and try to do with this application the following:

    • Write A Sentence Where Each Word Starts From Capital Letter (I can't do this)

    • Start the new sentence from the lowercase letter (Ensure you've typed dot and space before)

    • Start the first word in the editor from the uppercase letter.

    • Write a single word, without the trailing spaces and press 'Show' button (It shows me nothing, only the second press on 'Show' shows me the word).

    This code was tested on Nokia 5800 XpressMusic and N8 against Qt 4.6.3 library. And I also couldn't find any opened bugs related to this issue.

    And here is the code:

    #include <QTextEdit>
    #include <QMainWindow>

    class T9Test : public QMainWindow
    T9Test(QWidget* parent = 0);

    private slots:
    void showText();

    QTextEdit* textField_;

    #include "main.h"
    #include <QMessageBox>
    #include <QAction>
    #include <QApplication>

    T9Test::T9Test(QWidget* parent):QMainWindow(parent)
    textField_ = new QTextEdit;

    QAction* show = new QAction("Show", this);
    connect(show, SIGNAL(triggered()), this, SLOT(showText()));

    void T9Test::showText()
    QMessageBox::information(this, "Text", textField_->toPlainText());

    int main (int argc, char** argv)
    QApplication app(argc, argv);

    T9Test wnd;


    return app.exec();

  • For auto-capitalization there seems to be some indication that there will be new input hints for it in Qt4.8.0:

Log in to reply