Create a new horizontal spacer and add it behind the hyperlink label (or in front of the text label), this shall solve your problem. The code might looks like:
QSpacerItem *horizontalSpacer;
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxlayout->addItem(horizontalSpacer);
Also, I recommend use designer to accerlate your app design speed!