I am trying to use X11 libraries in qt application on MacOS but it is giving errors why i try to use XQueryTree/XOpenDisplay etc. Am i doing the right thing or do i need to add/install extra libraries to use X libraries in Qt or do i need to configure Qt/QtCreator to use X libraries?

Any help will be appreciated