Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved I Can't Use Raspberry pi at Based On QVirtualKeyboard [English Beginner]

    General and Desktop
    3
    4
    666
    Loading More Posts
    • 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.
    • ?
      A Former User last edited by aha_1980

      how can i Use VirtualKeyboard?

      .cpp

      qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); //append this
      

      .pro
      static {
      QT += svg
      QTPLUGIN += qtvirtualkeyboardplugin
      }

      disable-xcb {
      message("The disable-xcb option has been deprecated. Please use disable-desktop instead.")
      CONFIG += disable-desktop
      }
      CONFIG += link_pkgconfig

      but i Can't Showing Virtual Keyboard.. to Clicked editer

      In Windows Case(QWidget Based) using well..
      but Can't use Raspberry PI3(B)

      help plz :(

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @Guest last edited by

        @dont-do-that said in I Can't Use Raspberry pi at Based On QVirtualKeyboard [English Begginer]:

        qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); //append this

        where did you put this exactly? Before the creation of your QApplication instance?

        what Qt version.
        what WindowManager/Desktop is running on your pi?
        Did you create a InputPanel element in your QML app?

        --- 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 Reply Quote 2
        • ?
          A Former User @raven-worx last edited by

          @raven-worx

          int main(int argc, char *argv[])
          {
          qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
          QApplication a(argc, argv);
          MainWindow w;
          w.show();

          return a.exec();
          

          }

          1 Reply Last reply Reply Quote 0
          • F
            Foufy last edited by

            same problem, any idea? The stranger is that the VirtualKeyboardBasic exemple is working

            1 Reply Last reply Reply Quote 0
            • First post
              Last post