QTextEdit and predictive input mode, part 2
-
This post continues the discussion, started in "my previous post":http://developer.qt.nokia.com/forums/viewthread/1309
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":http://bit.ly/c5xPdc
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:
main.h
@
#include <QTextEdit>
#include <QMainWindow>class T9Test : public QMainWindow
{
Q_OBJECT
public:
T9Test(QWidget* parent = 0);private slots:
void showText();private:
QTextEdit* textField_;
};
@main.cpp
@
#include "main.h"
#include <QMessageBox>
#include <QAction>
#include <QApplication>T9Test::T9Test(QWidget* parent):QMainWindow(parent)
{
textField_ = new QTextEdit;
setCentralWidget(textField_);QAction* show = new QAction("Show", this);
show->setSoftKeyRole(QAction::PositiveSoftKey);
connect(show, SIGNAL(triggered()), this, SLOT(showText()));
addAction(show);
}void T9Test::showText()
{
QMessageBox::information(this, "Text", textField_->toPlainText());
}int main (int argc, char** argv)
{
QApplication app(argc, argv);T9Test wnd;
wnd.showMaximized();
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: