Thank for the pointer yogeshgokul, but I'm not quite sure how to use QMetaObject in this case.

Here's a snippet that I'm trying to convert:

Qt Code:
  1. MenuButton = new QPushButton(this);
  2. QMenu* MenuButtonPopup = new QMenu(MenuButton);
  3. MenuButton->setMenu(MenuButtonPopup);
  4. MenuButtonPopup->addAction( tr( "An item" ), this, SLOT(Clicked()))->setAccessibleName( tr( "An Item" ) );
To copy to clipboard, switch view to plain text mode 

Unsuprisingly this fails to compile with:
'setAccessibleName' : is not a member of 'QAction'

Is there a way to get QAction to inherit the setAccessibleName() function, or do I have to reimplement both QMenu and QAction?