Ok, this is dumb senior moment time. I have an application with many menu and submenu items where the actions work fine. So I add a new action as a submenu item and it shows up fine in the Designer and in the ui code:

Qt Code:
  1. <addaction name="actionQSL_Data_Label"/>
To copy to clipboard, switch view to plain text mode 

But it doesn't compile with this:
Qt Code:
  1. connect(ui->actionQSL_Data_Label, SIGNAL(triggered(bool)),
  2. this, SLOT(printQslData()));
To copy to clipboard, switch view to plain text mode 
The error message is: class Ui::MainWindow has no member named 'actionQSL_Data_Label'

And if I comment out the connect line, the application compiles and runs but the submenu item for the action doesn't show up in the menu.

I'm sure this is some simple mistake I'm making but I can't see it.
Adding a menu or submenu item and using the action created always worked before. But I haven't created any except this one since upgrading to Creator 2.0.1 and Qt 4.7.0

Any ideas?