@Eyeless really sorry for the late reply! Just realised you have replied to me. After some testing I have solidified the conclusion that it is not a Qt problem, as was expected. As such, there is no reason to post my trivial dialog code.
I am writing this for posterity's sake.
This issue is caused due to the focus stealing prevention mechanism by Unity. The user could change Unity's default behaviour by issuing in a terminal the command:
dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0
This will allow for the consequent dialogs to appear in front of their parents, as expected.