Tinkering with Qt/Qml + systems programming. Used nmcli instead of using iwlib-dev because of lack of proper documentation on how to use linux API's.
nmcli
$ sudo apt install nmcli