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. QInputContext error in Qt4.8.6: No such File or directory.
Forum Updated to NodeBB v4.3 + New Features

QInputContext error in Qt4.8.6: No such File or directory.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qinputcontext
7 Posts 3 Posters 2.7k Views 2 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by MhM93
    #1

    Hi.
    I have qt 4.7 and I want to run this sample code . I copy all the files and paste in my Ubuntu system . when I run it I saw a lot of error.
    for example in main.cpp i have this error :

    #include <QtGui/QApplication>//no such file or directory
    #include <QtGui/QWidget>//no such file or directory
    app.setInputContext(ic);//error: QApplication does not have method setInputContext
    

    I decide to create a new application but when I want to create MyInputPanelContext class and write

    #include <QInputContext>
    

    Said no such file or directory. Where is my problem?

    H.Ghassami

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Are you sure you're using Qt 4.7?
      As far as I know QInputContext is not part of Qt 5 anymore, so it looks like you're using Qt 5.

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

      1 Reply Last reply
      0
      • MhM93M Offline
        MhM93M Offline
        MhM93
        wrote on last edited by
        #3

        My Qt creator is 5.4.1
        and my qmake version is 4.8.6 (sorry now I check it again. 4.7 is my old qmake)

        H.Ghassami

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Check the Kit you're using to build the project ("Tools/Options.../Build & Run/Kits") - which Qt version is set there?

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

          1 Reply Last reply
          0
          • MhM93M Offline
            MhM93M Offline
            MhM93
            wrote on last edited by MhM93
            #5

            in my kit in Auto detected: Desktop qt 5.4.1.Is this mean my qmake is 5.4.1?(so sorry that I did not get it.)
            So how can I change it?
            and How does this application work for qt5?

            H.Ghassami

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

              Hi,

              The first question to answer is: which version of Qt do you want to use ?

              If Qt 4 then go to the Build & Run part of Qt Creator's settings. Then go to Qt Version and add your Qt 4 then and after that make a kit with.

              If you want to use Qt 5 then I'd recommend reading this excellent KDAB blog entry on the subject.

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

              MhM93M 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                The first question to answer is: which version of Qt do you want to use ?

                If Qt 4 then go to the Build & Run part of Qt Creator's settings. Then go to Qt Version and add your Qt 4 then and after that make a kit with.

                If you want to use Qt 5 then I'd recommend reading this excellent KDAB blog entry on the subject.

                MhM93M Offline
                MhM93M Offline
                MhM93
                wrote on last edited by MhM93
                #7

                @SGaist

                Thanks for reply. Now I understand. (So sorry)

                H.Ghassami

                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