Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. The Qt control fails to display the candidate word area above the virtual keyboard.
Forum Updated to NodeBB v4.3 + New Features

The Qt control fails to display the candidate word area above the virtual keyboard.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 60 Views
  • 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.
  • X Offline
    X Offline
    xueyangfei
    wrote on last edited by xueyangfei
    #1

    When using the virtual keyboard in the Qt control, the candidate word area fails to display above the virtual keyboard (outside the keyboard area). The candidate word area only appears when it is set to display below the virtual keyboard (within the keyboard area). When the candidate word area is configured to display above the virtual keyboard (outside the keyboard area), it only partially appears (showing a segment equal to the width of the key) when the letter keys above are clicked. I have adjusted the z-value of the ListView to ensure it is displayed on top.

    Widget::Widget(QWidget *parent)
        : QWidget(parent)
        , ui(new Ui::Widget)
    {
        ui->setupUi(this);
    
    
        QVBoxLayout *layout = new QVBoxLayout(this);
    
    
        MyLineEdit *editChinese = new MyLineEdit(this);
    
        editChinese->setInputMethodHints(Qt::ImhNone);
        editChinese->setAttribute(Qt::WA_InputMethodEnabled,true);
    
        layout->addWidget(editChinese);
    
    
        MyLineEdit *editDigits = new MyLineEdit(this);
        editDigits->setInputMethodHints(Qt::ImhDigitsOnly);
        layout->addWidget(editDigits);
        editDigits->setAttribute(Qt::WA_InputMethodEnabled,true);
        setLayout(layout);
    }
    
    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