PDA

View Full Version : confused about the focus about the input method ?when the input method popup



wshn13
19th June 2012, 09:23
Hi,All:
I make a small web browser base on qt webkit (QT Version 4.7.2).After I load a web page ,such as Google.com ,I click the web page ,NOT on the input box ,just the white area ,the input method popup .But where I clicked is not editable .Why ??? I only want the input method popup when I click a editable area .Any body help me

ChrisW67
19th June 2012, 09:34
How and where are you setting the Qt::WA_InputMethodEnabled attribute?

wshn13
19th June 2012, 09:42
How and where are you setting the Qt::WA_InputMethodEnabled attribute?
I haven't set the Qt::WA_InputMethodEnabled attribute

The true problem is whether I click the editable area or nu-editable area ,the input method always popup.

ChrisW67
19th June 2012, 10:06
Doesn't happen here with this:


#include <QtGui>
#include <QWebView>

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

QWebView w;
w.setUrl(QUrl("http://www.google.com")); // or www.google.co.kr/ncr
w.show();

return app.exec();
}


I suggest that you post a minimal compilable example that displays the problem along with some information about your environment, default locale, which Google national site etc.