Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Standart keyboard on touch screen

Standart keyboard on touch screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.5k Views 2 Watching
  • 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.
  • A Offline
    A Offline
    Annili
    wrote on last edited by
    #1

    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?

    VRoninV 1 Reply Last reply
    0
    • A Annili

      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?

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      @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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      A 1 Reply Last reply
      0
      • VRoninV VRonin

        @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

        A Offline
        A Offline
        Annili
        wrote on last edited by Annili
        #3

        @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.

        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