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. Where should I specify the path to QApplication for vs code to find it?

Where should I specify the path to QApplication for vs code to find it?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt6
2 Posts 2 Posters 246 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.
  • N Offline
    N Offline
    Nadia220
    wrote on 13 Oct 2024, 10:46 last edited by
    #1

    OC - Windows
    Where Qt6 comes from is the github repository.
    Compilation error in VS Code terminal " QApplication no such file or directory " .
    Where do I need to specify QApplication for vs code to find it?
    I have specified a couple of paths to it in Path (in variable environments), paths were also specified in the JS folder in the fixes.
    But in Qt creator everything works, the application starts.
    What did this case look like:

    • Downloading the repository zip code from GitHub and extracting files
    • Adding a repository to VS code
    • Adding a cpp file and application code specifying all classes and libraries (as #include <QApplication>)
    • Compiling the program into an exe file ?
    • Error 🫡
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Oct 2024, 18:37 last edited by
      #2

      Hi,

      GitHub is only a mirror of Qt's sources so what exactly did you install ?
      As for your project are you using something like cmake to manage your project ?

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

      1 Reply Last reply
      0

      2/2

      13 Oct 2024, 18:37

      • Login

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