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. too funny ! I have virtualkeyboard but I m not able to start
Forum Updated to NodeBB v4.3 + New Features

too funny ! I have virtualkeyboard but I m not able to start

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 268 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.
  • MontanaroM Offline
    MontanaroM Offline
    Montanaro
    wrote on last edited by
    #1

    Well I built a virtual keyboard using only c++ QT (no QML) but I m not able to use because I need mouse for first step

    I used :

    CONFIG += c++11   arrow-key-navigation
    

    for arrow navigation

    and this is example for my code:

    // set gui
    _qView.setReadOnly(true);
     _qGrid.addWidget(&_qView, 0, 0, 1, 3);
    
     _qBtnClr.setShortcut(QKeySequence("CLEAR"));
     _qGrid.addWidget(&_qBtnClr, 0, 3);
    
    // connect signal handlers
     connect(&_qBtnClr, &QPushButton::clicked,
       this, &MainWindow::clear);
    

    but at star, I need to move mouse and to click on mouse.
    Then keyboard allows me to use arrows.
    No mouse, no arrows controls .

    Can you suggest how to start with arrows without mouse ?

    jsulmJ 1 Reply Last reply
    0
    • MontanaroM Montanaro

      Well I built a virtual keyboard using only c++ QT (no QML) but I m not able to use because I need mouse for first step

      I used :

      CONFIG += c++11   arrow-key-navigation
      

      for arrow navigation

      and this is example for my code:

      // set gui
      _qView.setReadOnly(true);
       _qGrid.addWidget(&_qView, 0, 0, 1, 3);
      
       _qBtnClr.setShortcut(QKeySequence("CLEAR"));
       _qGrid.addWidget(&_qBtnClr, 0, 3);
      
      // connect signal handlers
       connect(&_qBtnClr, &QPushButton::clicked,
         this, &MainWindow::clear);
      

      but at star, I need to move mouse and to click on mouse.
      Then keyboard allows me to use arrows.
      No mouse, no arrows controls .

      Can you suggest how to start with arrows without mouse ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Montanaro Maybe you need to set focus on one of your widgets?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • MontanaroM Offline
        MontanaroM Offline
        Montanaro
        wrote on last edited by Montanaro
        #3

        yes.
        At start, on "clear" botton for example.

        I tried :

        _qBtnClr.setFocus();
        

        and now it works.

        thanks :)

        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