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. C1083 Error : Cannot open include file: No such file or directory [SOLVED]
QtWS25 Last Chance

C1083 Error : Cannot open include file: No such file or directory [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 8.9k 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.
  • L Offline
    L Offline
    Lazy93
    wrote on 11 Aug 2015, 08:15 last edited by Lazy93 8 Dec 2015, 06:39
    #1

    Hello everyone,

    I have 4 errors of C1083 which are
    error: C1083: Cannot open include file: 'QtGui/QApplication': No such file or directory
    error: C1083: Cannot open include file: 'QDialog': No such file or directory
    error: C1083: Cannot open include file: 'QDialog': No such file or directory
    error: C1083: Cannot open include file: 'QWidget': No such file or directory

    I am trying to run an example given from a QLED custom widget plugin from the link below
    http://qt-apps.org/content/download.php?content=72482&id=1&tan=61015963

    I am currently using QCreator 3.4.2 based on Qt 5.5.0 . Windows 7 . Is there any solution for me to run this example ? Alternatively, is there any suggestion how can I get other LED plugins or examples ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 11 Aug 2015, 08:40 last edited by mrjj 8 Nov 2015, 08:41
      #2

      Hi
      It was made for older version of Qt:
      Remove "QtGui/" in the #includes and add
      QT += widgets
      to the .pro file

      BUT!
      its a plugin and unless you are using the MS VC compiler,
      the plugin will not work as it must be compiled with same compiler as Qt Creator.

      So even that you can build example, it will not work as you need to build and install plugin first.

      L 1 Reply Last reply 11 Aug 2015, 15:26
      0
      • M mrjj
        11 Aug 2015, 08:40

        Hi
        It was made for older version of Qt:
        Remove "QtGui/" in the #includes and add
        QT += widgets
        to the .pro file

        BUT!
        its a plugin and unless you are using the MS VC compiler,
        the plugin will not work as it must be compiled with same compiler as Qt Creator.

        So even that you can build example, it will not work as you need to build and install plugin first.

        L Offline
        L Offline
        Lazy93
        wrote on 11 Aug 2015, 15:26 last edited by
        #3

        @mrjj
        Hi,
        Do you have any suggestion for me to have LED plugins ? I wanted to have like LED blinking for LED simulation.

        Thanks !

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 11 Aug 2015, 15:46 last edited by
          #4

          Well you could just take the class used for the plugin (the led class) and
          make your own widget which you can use from code. (not in Designer)

          Hmm " LED blinking for LED simulation"

          I do not think this led can blink. ?
          You could also just draw led on / led off images on screen.

          What would be the source of the on/off? Just blinking for fun or
          to show like modem etc?

          L 1 Reply Last reply 12 Aug 2015, 01:15
          0
          • M mrjj
            11 Aug 2015, 15:46

            Well you could just take the class used for the plugin (the led class) and
            make your own widget which you can use from code. (not in Designer)

            Hmm " LED blinking for LED simulation"

            I do not think this led can blink. ?
            You could also just draw led on / led off images on screen.

            What would be the source of the on/off? Just blinking for fun or
            to show like modem etc?

            L Offline
            L Offline
            Lazy93
            wrote on 12 Aug 2015, 01:15 last edited by
            #5

            @mrjj
            HI,
            How do I make my own widget ? Well specifically I wanted to make a simple simulation of the tell-tale(automotive) which shows left and right signal, handbrake, beam on, high beam, probably gears(P,R,N,D,3,2,1), ABS, and some other indicators. Since I cant really find any plugin for any of those, I decided to go with LED to replace them. Technically as long something that can appear as ON and OFF would do the job .... I think ?

            M 1 Reply Last reply 12 Aug 2015, 06:28
            0
            • L Lazy93
              12 Aug 2015, 01:15

              @mrjj
              HI,
              How do I make my own widget ? Well specifically I wanted to make a simple simulation of the tell-tale(automotive) which shows left and right signal, handbrake, beam on, high beam, probably gears(P,R,N,D,3,2,1), ABS, and some other indicators. Since I cant really find any plugin for any of those, I decided to go with LED to replace them. Technically as long something that can appear as ON and OFF would do the job .... I think ?

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 12 Aug 2015, 06:28 last edited by
              #6

              @Lazy93
              To make your own version of the led, you would take all code that are not part of the actual plugin, but the
              the led class itself. In this case both qled.cpp and qled.h.
              Add them your project and in your main window code,new a QLed and set its properties from code.
              Note it also seems to need some resources so might need to add those to project too.

              Alternative you can follow this
              http://www.ics.com/blog/integrating-custom-widget-qt-designer

              And make your own version and stop at
              "At this point, we have a useful custom widget. We can insert it into layouts programmatically"

              If you do not want to get into creating a new widget, you could also use a QLabel which can show an image.
              So you could simply set a image for ON/OFF state. Like
              ui->label->setPixmap(QPixmap("c:/mypath/on.png"));

              L 1 Reply Last reply 12 Aug 2015, 06:39
              1
              • M mrjj
                12 Aug 2015, 06:28

                @Lazy93
                To make your own version of the led, you would take all code that are not part of the actual plugin, but the
                the led class itself. In this case both qled.cpp and qled.h.
                Add them your project and in your main window code,new a QLed and set its properties from code.
                Note it also seems to need some resources so might need to add those to project too.

                Alternative you can follow this
                http://www.ics.com/blog/integrating-custom-widget-qt-designer

                And make your own version and stop at
                "At this point, we have a useful custom widget. We can insert it into layouts programmatically"

                If you do not want to get into creating a new widget, you could also use a QLabel which can show an image.
                So you could simply set a image for ON/OFF state. Like
                ui->label->setPixmap(QPixmap("c:/mypath/on.png"));

                L Offline
                L Offline
                Lazy93
                wrote on 12 Aug 2015, 06:39 last edited by
                #7

                @mrjj
                Hi ,
                Thanks for the suggestions ! I will give them a try !

                1 Reply Last reply
                0

                3/7

                11 Aug 2015, 15:26

                • Login

                • Login or register to search.
                3 out of 7
                • First post
                  3/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved