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. QT_IM_MODULE doesn't work for me
Forum Updated to NodeBB v4.3 + New Features

QT_IM_MODULE doesn't work for me

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtimmodule
6 Posts 3 Posters 3.9k 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.
  • sibislaw45S Offline
    sibislaw45S Offline
    sibislaw45
    wrote on last edited by
    #1

    I tried to set custom input method(virtual keyboard) but QT_IM_MODULE doesn't work for me.

    I downloaded

    http://tolszak-dev.blogspot.com/2013/04/qplatforminputcontext-and-virtual.html

    virtual keyboard example, compiled it and succesfully installed in my system but when i set

    QT_IM_MODULE=mockup and start simple Qt app i does not work. Do you know why?

    Plugin is loaded correctly:

    Trying... "./plugins/libMockupVirtualKeyboard.so"
    Found metadata in lib ./plugins/libMockupVirtualKeyboard.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface",
    "MetaData": {
    "Keys": [
    "mockup"
    ]
    },
    "className": "MockupPlatformInputContextPlugin",
    "debug": true,
    "version": 329216
    }

    raven-worxR 1 Reply Last reply
    0
    • sibislaw45S sibislaw45

      I tried to set custom input method(virtual keyboard) but QT_IM_MODULE doesn't work for me.

      I downloaded

      http://tolszak-dev.blogspot.com/2013/04/qplatforminputcontext-and-virtual.html

      virtual keyboard example, compiled it and succesfully installed in my system but when i set

      QT_IM_MODULE=mockup and start simple Qt app i does not work. Do you know why?

      Plugin is loaded correctly:

      Trying... "./plugins/libMockupVirtualKeyboard.so"
      Found metadata in lib ./plugins/libMockupVirtualKeyboard.so, metadata=
      {
      "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface",
      "MetaData": {
      "Keys": [
      "mockup"
      ]
      },
      "className": "MockupPlatformInputContextPlugin",
      "debug": true,
      "version": 329216
      }

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @sibislaw45
      How exactly have you set the QT_IM_MODULE env variable?

      is the posted output from a set QT_DEBUG_PLUGINS env variable? To me it seems like you are trying to load the plugin manually by yourself? If this is the case you should rather put the plugin into the platforminputcontexts sub-folder of your Qt plugins path.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • sibislaw45S Offline
        sibislaw45S Offline
        sibislaw45
        wrote on last edited by
        #3

        How exactly have you set the QT_IM_MODULE env variable?

        QT_IM_MODULE=mockup ./PluginTest

        (PluginTest is basic widgets app created from qt creator).

        is the posted output from a set QT_DEBUG_PLUGINS env variable? YES

        Plugin is in platforminputcontexts sub-folder

        raven-worxR 1 Reply Last reply
        0
        • sibislaw45S sibislaw45

          How exactly have you set the QT_IM_MODULE env variable?

          QT_IM_MODULE=mockup ./PluginTest

          (PluginTest is basic widgets app created from qt creator).

          is the posted output from a set QT_DEBUG_PLUGINS env variable? YES

          Plugin is in platforminputcontexts sub-folder

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @sibislaw45
          i am asking becasue the first line of your posted output says it tries to load from the plugins folder directly:

          Trying... "./plugins/libMockupVirtualKeyboard.so"
          

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • sibislaw45S Offline
            sibislaw45S Offline
            sibislaw45
            wrote on last edited by
            #5

            Yes, sorry but now is:

            QFactoryLoader::QFactoryLoader() looking at "/home/s.busza/Qt5/5.6/gcc_64/plugins/platforminputcontexts/libmockupvirtualkeyboard.so"
            Found metadata in lib /home/s.busza/Qt5/5.6/gcc_64/plugins/platforminputcontexts/libmockupvirtualkeyboard.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface",
            "MetaData": {
            "Keys": [
            "mockup"
            ]
            },
            "className": "MockupPlatformInputContextPlugin",
            "debug": true,
            "version": 329216
            }

            Got keys from plugin meta data ()

            the keys is empty, i see

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DalePennington
              wrote on last edited by
              #6

              I have had a similar issue. I was actually trying both QtVirtualKeyboard (for Qt12.5.1) and Mockup to get an idea how these work, and what I would need to modify for my needs. What I discovered is that the QtVirtualKeyboard had an interface of "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1" , while mockup had an interface of "org.qt-project.Qt.QPlatformInputContextFactoryInterface". My guess is that at some point the interface was reved, and Mockup is now a too old interface. Why I adjust Mockup to match QtVirtualKeyboard, it worked.
              As a side note, when I run designer, neither shows up in the plugins dialog, even they are active (as proven by checking the filter box).

              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