Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find location of Qt include headers on Linux

I just spent ages trying to find the location of the header files for Qt, so that I can properly configure VSCode to work with my Qt application. I couldn't find any answers on this website, so I'm posting here for how to find them.

Where are the Qt include headers on Linux?


1 Answers

You can run:

qmake -query QT_INSTALL_HEADERS

This will return the location of the Qt header files, e.g for me: /usr/include/x86_64-linux-gnu/qt5.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!