Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Keyboard layout switching in Qt, not just in Qt for embedded Linux
Forum Updated to NodeBB v4.3 + New Features

Keyboard layout switching in Qt, not just in Qt for embedded Linux

Scheduled Pinned Locked Moved Mobile and Embedded
38 Posts 2 Posters 13.3k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #29

    Are you sure you are doing an x86 embedded build ?

    If you are using Qt Creator, just switch from one kit to another one. Or if from the command line, use the correct qmake version.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      __Alex__
      wrote on last edited by
      #30

      I am not sure, that's why I'm asking if switching the qmake is enough or if more things are needed to make QtCreator use the other kit.

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        __Alex__
        wrote on last edited by
        #31

        I am going to be on holidays for the next 3 weeks. Thanks for the help so far!

        Afterwards I will probably try to setup a new VM, install only Qt for Embedded Linux and see if it works better.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #32

          The simplest way on the command line is to give the full path to the qmake corresponding to which version of Qt you want to compile with.

          On Qt Creator, you have to check your kits.

          Have a nice time

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            __Alex__
            wrote on last edited by
            #33

            Hello again,

            I had a nice time indeed. I hope you're doing well, too.

            I finally tried to tackle Qt for Embedded Linux again, but I got another problem:
            I set up a new VM and installed only Qt for Embedded Linux SDK. When I found out that this SDK doesn't include QtCreator, I installed QtCreator version 3.2.1. Now I have the problem that it doesn't find any kits. I assumed when you install an SDK it would be registered in a place where QtCreator could find it, but apparently just extending PATH doesn't do the trick.

            Do I have to add it manually? I tried that, too, but the SDK doesn't have a GCC. I tried using RCC instead, but QtCreator says that this one is not able to compile the project. And unfortunately there doesn't seem to be a tutorial on that here. so I'd like to know

            1. how to properly register the SDK so QtCreator sees it and
            2. if that's not possible, how to link a kit manually

            Cheers
            Alex

            1 Reply Last reply
            0
            • _ Offline
              _ Offline
              __Alex__
              wrote on last edited by
              #34

              Also the SDK we're currently using for compiling (a custom-made arm SDK) has some functionality that's required as well, so if I switch all paths in our compile-scripts to the Qt for Embedded Linux SDK I get the error
              "configure: error: C compiler cannot create executables"

              So apparently I need some functionality from the current SDK, too. I guess that means I'd have to merge both SDKs, right? Is something like that even doable? I mean, obviously it's possible to customize an SDK, but the Qt for Embedded Linux one seems to be the only one capable of keyboard layout switching, so I'm expecting massive compatibility problems.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #35

                You are mixing several things.

                To register a new version of Qt with Qt Creator you have to go the Build & Run panel of the Preferences, Qt Version and add it there. Qt doesn't provide gcc (or rather g++) you have to install these using your linux distribution package manager.

                Did you already cross-compiled Qt for arm ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • _ Offline
                  _ Offline
                  __Alex__
                  wrote on last edited by
                  #36

                  Yes, we've been cross-compiling the project for arm for quite some time now, but instead of QtCreator we use sh-scripts that call makefiles for that. QtCreator was used for simulation only.

                  Incidentally I found out that "QKbdDriverFactory::create" throws its error only inside of QtCreator. When using the sh-scripts it compiles fine, even though as far as I can tell we're referencing the same SDK in both cases. Of course switching layouts doesn't work yet because I just tested invoking the create-function so far and I can't tell if it will work at all. Is there a working example somewhere? I've been searching for some time now, but to no avail. I do know roughly what to do but without an example I'd have to guess around a lot, without knowing if our custom SDK (and our current software architecture) can do it at all.

                  About QtCreator:
                  That problem is fairly minor now because if I switch to embedded SDK, some other arm-related things are missing, but thanks for the help. After going back to our original version of QtCreator (2.4.1) the Qt Kit tab is fortunately gone (so no more manually configuring a kit), so I did what you told me and now the kit is there, but in the SDK's qdeclarativeitem.h it doesn't like Q_REVISION. But since this is likely a dead-end unless I find out how to merge both SDKs this issue is not important anymore.

                  And one more question:
                  Can Qt for Embedded Linux SDK handle special things like when you're in Chinese and you type a bunch of characters they get combined into fewer characters? When I searched around for alternative solutions to using the embedded SDK and I read that xkbcommon can not do that I started wondering if the SDK can do it.
                  http://fooishbar.org/tell-me-about/xkbcommon-intro/

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #37

                    Are you trying to build Qt from Qt Creator ?

                    Kanji handling ? I don't know at all, the subject always intrigued me but I didn't take the time to investigate that.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • _ Offline
                      _ Offline
                      __Alex__
                      wrote on last edited by
                      #38

                      Building Qt from Qt Creator? No, we installed a Qt SDK that included Qt Creator.

                      So, do you know of a working example? The examples on http://doc.qt.digia.com/4.6/examples-embeddedlinux.html don't have anything to do with keyboard layouts. I could test Kanji handling there.

                      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