You will need to read the page about Single Sign On in order to let your Joomla users use Q2A. Follow the instructions in qa-external-users.php to return appropriate data from the functions.
You can find instructions for dealing with Joomla users outside of Joomla by searching Google.