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. Connecting a file from a folder
Forum Updated to NodeBB v4.3 + New Features

Connecting a file from a folder

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 431 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.
  • T Offline
    T Offline
    Troyer
    wrote on last edited by
    #1

    How do I connect a file located in a folder correctly?

    image.JPG

    JonBJ jsulmJ 2 Replies Last reply
    0
    • T Troyer

      How do I connect a file located in a folder correctly?

      image.JPG

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Troyer
      Why are you using < ... > for your own #include files?
      Try:

      #include <QMainWindow>
      
      #include "laba_2.h"
      #include "Laba_3/widget.h"
      
      T 1 Reply Last reply
      3
      • T Troyer

        How do I connect a file located in a folder correctly?

        image.JPG

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Troyer Just as additional explanation to what @JonB wrote: <> is used for system header files, not for header files from your own project.

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

        1 Reply Last reply
        3
        • JonBJ JonB

          @Troyer
          Why are you using < ... > for your own #include files?
          Try:

          #include <QMainWindow>
          
          #include "laba_2.h"
          #include "Laba_3/widget.h"
          
          T Offline
          T Offline
          Troyer
          wrote on last edited by
          #4

          @JonB Still doesn't see it

          image.JPG

          jsulmJ 1 Reply Last reply
          0
          • T Troyer

            @JonB Still doesn't see it

            image.JPG

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Troyer Does it compile?
            Most probably it's code model issue.
            You can also add your header files in pro file to your project.

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

            1 Reply Last reply
            2
            • B Offline
              B Offline
              Bonnie
              wrote on last edited by
              #6

              in the .pro file

              INCLUDEPATH += F:/labs
              
              1 Reply Last reply
              1

              • Login

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