Results 1 to 4 of 4

Thread: confused about the focus about the input method ?when the input method popup

  1. #1
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default confused about the focus about the input method ?when the input method popup

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,593
    Thanks
    13
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: confused about the focus about the input method ?when the input method popup

    How and where are you setting the Qt::WA_InputMethodEnabled attribute?

  3. #3
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: confused about the focus about the input method ?when the input method popup

    Quote Originally Posted by ChrisW67 View Post
    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.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,593
    Thanks
    13
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: confused about the focus about the input method ?when the input method popup

    Doesn't happen here with this:
    Qt Code:
    1. #include <QtGui>
    2. #include <QWebView>
    3.  
    4. int main(int argc, char **argv)
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. QWebView w;
    9. w.setUrl(QUrl("http://www.google.com")); // or www.google.co.kr/ncr
    10. w.show();
    11.  
    12. return app.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

    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.

Similar Threads

  1. Replies: 2
    Last Post: 21st August 2010, 10:26
  2. How to use input method with QLineEdit in HP-UX (Qt4.5)
    By justalittle in forum Qt Programming
    Replies: 0
    Last Post: 11th March 2010, 08:22
  3. Qt textedit input method problem. please help!
    By Scott Liu in forum Qt Programming
    Replies: 0
    Last Post: 18th January 2010, 03:10
  4. Replies: 0
    Last Post: 2nd June 2009, 15:57
  5. An exception about the input method
    By angelhigh in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 09:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.