Standart keyboard on touch screen



  • I'v got some problem when using desktop app on touch screen (Windows 7). Problem is there is no pop-up virtual keyboard when focus reached any input widget (like QLineEdit, QSpinBox and etc).
    I'm using Qt 5.8 and simple app with QWidgets.
    This is all code i got now

    #include "mainwindow.h"
    #include "ui_mainwindow.h"

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow) {
    ui->setupUi(this);
    }

    MainWindow::~MainWindow() {
    delete ui;
    }
    and i get no pop-up keyboard!0_1491810395722_1.png
    But what i wanna see is smth like this (QFileDialog was called):0_1491813044763_2.png
    Question is : is there any easy way to configure widgets to get such standart keyboard behavior?



  • @Annili said in Standart keyboard on touch screen:

    I'm using Qt 5.8 and simple app with QWidgets.

    With QWidgets there is no "standard way". you can take a look at https://www.kdab.com/qt-input-method-virtual-keyboard/ but if you even start thinking about internationalise it you realise it's just not feasible

    See also: https://forum.qt.io/topic/75129/virtual-keyboard-does-not-show-up-in-qwidgets-app-on-rpi-2/8



  • @VRonin as far as i know, on windows 10 such system osk pops up automaticly when focus is on input widget. thats why im concern that is gotta be such easy way to show this keyboard.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.