Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. WindeployQT QTVirtualKeyboard not working after deployment

WindeployQT QTVirtualKeyboard not working after deployment

Scheduled Pinned Locked Moved Solved Installation and Deployment
virtualkeyboardc++ qtwindeployqt
5 Posts 2 Posters 920 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.
  • Y Offline
    Y Offline
    Yina
    wrote on last edited by
    #1

    Hello,

    After installing my Qt Application on windows (using WindeployQT) there is no sign of the QTVirtualKeyboard, when developing it works like a charm, but it seems to be missing some files on deployment.
    This is what I found out so far in the Qt Creator:

    1228441d-3056-4e43-ae40-92d4aaad31b3-image.png

    These are screenshots from the two error lines:

    2e149e86-b66a-4ebc-9b18-9b5cf3234be7-image.png

    838af96e-63ab-4377-9abb-db57bbac6f68-image.png
    Any suggestions on where I could start resolving this issue? :-)

    Kind regards,
    Yina

    raven-worxR 1 Reply Last reply
    0
    • Y Yina

      @raven-worx Dear Raven, I have tried your solution, but without success.
      Below you can find the link of the verbose2 command, am I wrong to think that QtQml.Models is correctly imported?
      I am are using QtQml.Models 2.2

      Kind regards,
      Yina
      Output Verbose:
      https://we.tl/t-ru2wH94uHl

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

      @Yina
      some observations:

      1. you are using windeployqt on a debug build
      2. your --qmldir parameter points to the Qt dirs qml directory, which in the end will copy almost everything from Qt

      What also would be interesting is the output with the envvar QML_IMPORT_TRACE=1. For example use
      qputenv("QML_IMPORT_TRACE","1") in your main() and then via the debug menu in QtCreator start an external application to attach the debugger and see the output of your deployed application.

      --- 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
      1
      • Y Yina

        Hello,

        After installing my Qt Application on windows (using WindeployQT) there is no sign of the QTVirtualKeyboard, when developing it works like a charm, but it seems to be missing some files on deployment.
        This is what I found out so far in the Qt Creator:

        1228441d-3056-4e43-ae40-92d4aaad31b3-image.png

        These are screenshots from the two error lines:

        2e149e86-b66a-4ebc-9b18-9b5cf3234be7-image.png

        838af96e-63ab-4377-9abb-db57bbac6f68-image.png
        Any suggestions on where I could start resolving this issue? :-)

        Kind regards,
        Yina

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

        @Yina
        the error says it couldn't resolve ListModel type (used by the virtual keyboard).

        windeployqt scans the qml files of your project. My guess is you are not using the QtQml.Models qml import anywhere in your project and thus the qml plugin isn't included in the deployment and missing in the end.

        you could use import QtQml.Models 2.15 in any qml file and run windeployqt again.

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

        Y 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Yina
          the error says it couldn't resolve ListModel type (used by the virtual keyboard).

          windeployqt scans the qml files of your project. My guess is you are not using the QtQml.Models qml import anywhere in your project and thus the qml plugin isn't included in the deployment and missing in the end.

          you could use import QtQml.Models 2.15 in any qml file and run windeployqt again.

          Y Offline
          Y Offline
          Yina
          wrote on last edited by
          #3

          @raven-worx Dear Raven, I have tried your solution, but without success.
          Below you can find the link of the verbose2 command, am I wrong to think that QtQml.Models is correctly imported?
          I am are using QtQml.Models 2.2

          Kind regards,
          Yina
          Output Verbose:
          https://we.tl/t-ru2wH94uHl

          raven-worxR 1 Reply Last reply
          0
          • Y Yina

            @raven-worx Dear Raven, I have tried your solution, but without success.
            Below you can find the link of the verbose2 command, am I wrong to think that QtQml.Models is correctly imported?
            I am are using QtQml.Models 2.2

            Kind regards,
            Yina
            Output Verbose:
            https://we.tl/t-ru2wH94uHl

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

            @Yina
            some observations:

            1. you are using windeployqt on a debug build
            2. your --qmldir parameter points to the Qt dirs qml directory, which in the end will copy almost everything from Qt

            What also would be interesting is the output with the envvar QML_IMPORT_TRACE=1. For example use
            qputenv("QML_IMPORT_TRACE","1") in your main() and then via the debug menu in QtCreator start an external application to attach the debugger and see the output of your deployed application.

            --- 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
            1
            • Y Offline
              Y Offline
              Yina
              wrote on last edited by
              #5

              @raven-worx
              Thank you very much for your time, my issue is resolved :-)

              It was indeed the debug build causing the issue, and I am using the correct qlmdir to avoid unnecessary imports.

              Thank you again and have a nice day!

              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