joplin-notes/joplin notion extension/Web Development/C_C++/QT/Setup.md
2026-11-04 00:33:23 +05:30

756 B

Setup

  • To be able to get suggesstion on qt based methods, classes. adding includepath is necessary. it is /usr/include/qt and /usr/include/qt/QtWidgets
  • for nvim and zed add .clangd in project directory and add following
    CompileFlags:
    Add:
      - "-I/usr/include/qt"
      - "-I/usr/include/qt/QtWidgets"
    
    
    in vscode its .vscode/c_cpp_properties.json under includepath
      {
      	"configurations": [
      		{
      			"name": "Linux",
      			"includePath": [
      				"${workspaceFolder}/**",
      				"/usr/include/qt/QtWidgets",
      				"/usr/include/qt"
      			],
      			"defines": [],
      			"compilerPath": "/usr/bin/clang",
      			"cStandard": "c17",
      			"cppStandard": "c++17",
      			"intelliSenseMode": "linux-clang-x64"
      		}
      	],
      	"version": 4
      }