Click on "Settings" -> "Teamspeak Server Settings".
Now you can enter the data.
In Query Port give the TeamSpeak Query port in, if you do not know which port it is, please ask your provider for this.
In "Query Login" and "Query password" please type the query user name and password what you have created by yourself on this tutorial:[LINUX/WINDOWS]CREATE SERVERQUERY LOGIN
If you sure all things are right press on "Save all settings"
Now the Query and the Client should connect to your Teamspeak and your done.