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. Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1
Forum Updated to NodeBB v4.3 + New Features

Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1

Scheduled Pinned Locked Moved Solved QML and Qt Quick
18 Posts 3 Posters 3.5k Views 1 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.
  • U Offline
    U Offline
    UnknownCollegeCoder
    wrote on last edited by UnknownCollegeCoder
    #9

    @jsulm On my windows computer I have cmake and on my linux setup I have .pro. I have a git repo setup but I only push the main project files and let Qt creator setup the project kit for me.

    From what I understand now, I should be using cmake instead of qmake on my windows laptop and trying this same setup?

    I would add a screenshot of the error that I am getting on the linux setup but I don't have that accessible at the moment.

    jsulmJ 1 Reply Last reply
    0
    • U UnknownCollegeCoder

      @jsulm On my windows computer I have cmake and on my linux setup I have .pro. I have a git repo setup but I only push the main project files and let Qt creator setup the project kit for me.

      From what I understand now, I should be using cmake instead of qmake on my windows laptop and trying this same setup?

      I would add a screenshot of the error that I am getting on the linux setup but I don't have that accessible at the moment.

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

      @UnknownCollegeCoder I'm confused now: do you use QMake or CMake for your project?
      "I have a git repo setup but I only push the main project files" - the pro or CMakeLists.txt files are part of the project and should also be pushed to your repo.
      It is really simple: if you have a pro file in your project then simply use qmake on Windows and Linux. If you have CMakeLists.txt file then use cmake on Windows and Linux. It has nothing to do with the operating system!

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

      1 Reply Last reply
      0
      • U Offline
        U Offline
        UnknownCollegeCoder
        wrote on last edited by UnknownCollegeCoder
        #11

        For my project I use Cmake I believe. Sorry for the confusion.

        The main thing I want to understand is how to enable the arrow-keynavigation for the virtual keyboard in my project.

        jsulmJ 1 Reply Last reply
        0
        • U UnknownCollegeCoder

          For my project I use Cmake I believe. Sorry for the confusion.

          The main thing I want to understand is how to enable the arrow-keynavigation for the virtual keyboard in my project.

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

          @UnknownCollegeCoder Then I don't know why you're trying to run qmake?
          If you get error messages when compiling please post them, especially the very first one.

          Btw. qmake does not generate compiler errors, so the error you posted did not come from qmake, but from the C++ compiler.

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

          1 Reply Last reply
          0
          • U Offline
            U Offline
            UnknownCollegeCoder
            wrote on last edited by UnknownCollegeCoder
            #13

            @jsulm Sorry for the confusion. I have my project on both a Windows computer and a Linux computer but on each machine I have downloaded the compilers and their respective libraries. In @Joseph-Keene's example he accessed the VirtualKeyboard library to add CONFIG+=arrow-key-navigation. From my understanding to do these steps you need to have the .pro files in the respective libraries as mentioned above. However, on my windows machine there are no .pro files in these locations. Would I instead have to do something with cmake?

            On my linux machine I tried to follow the steps shown above but when I use make after doing qmake I get this error.

            image.png

            Should I continue with the linux machine or is there an easier way to change this config on my windows machine?

            If you need more context on what I am trying to do, I created a post as well. Here's the link if you want to check it out.

            https://forum.qt.io/topic/160947/how-to-use-arrow-key-navigation-with-qtvirtualkeyboard
            Thank You

            jsulmJ 1 Reply Last reply
            0
            • U UnknownCollegeCoder

              @jsulm Sorry for the confusion. I have my project on both a Windows computer and a Linux computer but on each machine I have downloaded the compilers and their respective libraries. In @Joseph-Keene's example he accessed the VirtualKeyboard library to add CONFIG+=arrow-key-navigation. From my understanding to do these steps you need to have the .pro files in the respective libraries as mentioned above. However, on my windows machine there are no .pro files in these locations. Would I instead have to do something with cmake?

              On my linux machine I tried to follow the steps shown above but when I use make after doing qmake I get this error.

              image.png

              Should I continue with the linux machine or is there an easier way to change this config on my windows machine?

              If you need more context on what I am trying to do, I created a post as well. Here's the link if you want to check it out.

              https://forum.qt.io/topic/160947/how-to-use-arrow-key-navigation-with-qtvirtualkeyboard
              Thank You

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

              @UnknownCollegeCoder Are you aware that @Joseph-Keene was building virtualkeyboard from Qt source code, not his own application?
              To do this you have to download Qt source code first. If you're using Qt6 you will have to use cmake to build virtualkeyboard.
              Here is official documentation how to build Qt (but you don't have to build everything, only virtualkeyboard): https://wiki.qt.io/Building_Qt_6_from_Git

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

              1 Reply Last reply
              1
              • U Offline
                U Offline
                UnknownCollegeCoder
                wrote on last edited by
                #15

                @jsulm No this is not what I want to. I did not realize this.

                I will try to give you a better explanation. I am creating a project on a Windows computer using QtCreator and cmake. I want to use the virtualKeyboard library but I only have the option of using arrow keys to navigate the keyboard. So when the keyboard comes on the screen I want a letter to be highlighted which can be moved around using the arrow keys. I noticed the virtualKeyboard library has a configuration for the arrow keys to be enabled but it is initially set to disabled. I am fairly new to this so I don't quite understand how to actually enable this configuration.

                jsulmJ 1 Reply Last reply
                0
                • U UnknownCollegeCoder

                  @jsulm No this is not what I want to. I did not realize this.

                  I will try to give you a better explanation. I am creating a project on a Windows computer using QtCreator and cmake. I want to use the virtualKeyboard library but I only have the option of using arrow keys to navigate the keyboard. So when the keyboard comes on the screen I want a letter to be highlighted which can be moved around using the arrow keys. I noticed the virtualKeyboard library has a configuration for the arrow keys to be enabled but it is initially set to disabled. I am fairly new to this so I don't quite understand how to actually enable this configuration.

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

                  @UnknownCollegeCoder said in Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1:

                  I don't quite understand how to actually enable this configuration.

                  Like @Joseph-Keene shown. But that requires that you build virtualkeyboard by yourself.

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

                  U 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @UnknownCollegeCoder said in Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1:

                    I don't quite understand how to actually enable this configuration.

                    Like @Joseph-Keene shown. But that requires that you build virtualkeyboard by yourself.

                    U Offline
                    U Offline
                    UnknownCollegeCoder
                    wrote on last edited by
                    #17

                    @jsulm Ok. On my Linux machine I went to my Qt main directory and did ./configure -vkb-arrow-keynavigation which now in my configure list it has "Key navigation ..........................yes" which I believe means it is enabled.

                    Would you happen to know how I get this configuration to my current project? I am just trying to use the basic keyboard example that Qt provides. I have added an input panel which sets the focus to itself once completed. I know the keyboard has the focus but arrow keys aren't showing up yet. So I am pretty sure that this configuration isn't making it to my project. But I am unsure how to get this to my project.

                    jsulmJ 1 Reply Last reply
                    0
                    • U UnknownCollegeCoder

                      @jsulm Ok. On my Linux machine I went to my Qt main directory and did ./configure -vkb-arrow-keynavigation which now in my configure list it has "Key navigation ..........................yes" which I believe means it is enabled.

                      Would you happen to know how I get this configuration to my current project? I am just trying to use the basic keyboard example that Qt provides. I have added an input panel which sets the focus to itself once completed. I know the keyboard has the focus but arrow keys aren't showing up yet. So I am pretty sure that this configuration isn't making it to my project. But I am unsure how to get this to my project.

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

                      @UnknownCollegeCoder said in Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1:

                      Would you happen to know how I get this configuration to my current project?

                      You don't! Again: this instruction is to BUILD Qt virtualkeyboard itself, not your project! After calling configure you call make and then "make install" (just like @Joseph-Keene shown already).

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

                      1 Reply Last reply
                      1
                      • SGaistS SGaist referenced this topic on

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved