Hello forum,


I have just recently updated the qt to 4.8.

I have some .ui file from the previous version and i am continuing working on it. I am trying to crate a simple QActionGroup to the menu as follows:

Qt Code:
  1. H3DMainWindow::H3DMainWindow(QWidget *parent):
  2. QMainWindow(parent)
  3. {
  4. setupUi(this);
  5.  
  6. configureActions();
  7. configureMenus();
  8. }
  9.  
  10. H3DMainWindow::~H3DMainWindow()
  11. {
  12.  
  13. }
  14.  
  15. void H3DMainWindow::configureActions()
  16. {
  17. m_actionEXAMINE = new QAction(tr("EXAMINE"),this);
  18. m_actionEXAMINE->setChecked(true);
  19.  
  20. m_actionFLY = new QAction(tr("FLY"),this);
  21.  
  22. m_actionWALK = new QAction(tr("WALK"),this);
  23.  
  24. m_actionLOOKAT = new QAction(tr("LOOKAT"),this);
  25.  
  26. m_actionNONE = new QAction(tr("NONE"),this);
  27.  
  28.  
  29. //create the action group and add the actions to the group
  30. m_navigationGroup = new QActionGroup(this);
  31. m_navigationGroup->addAction(m_actionEXAMINE);
  32. m_navigationGroup->addAction(m_actionFLY);
  33. m_navigationGroup->addAction(m_actionWALK);
  34. m_navigationGroup->addAction(m_actionLOOKAT);
  35. m_navigationGroup->addAction(m_actionNONE);
  36. }
  37.  
  38. void H3DMainWindow::configureMenus()
  39. {
  40. //configure the navigation menu
  41. menu_Navigation->addAction(m_actionEXAMINE);
  42. menu_Navigation->addAction(m_actionFLY);
  43. menu_Navigation->addAction(m_actionWALK);
  44. menu_Navigation->addAction(m_actionLOOKAT);
  45. menu_Navigation->addAction(m_actionNONE);
  46. menu_Navigation->addSeparator();
  47. }
To copy to clipboard, switch view to plain text mode 

But the action group is not working. I am supposed have radio button beside each of the actions, it shows something like this
Radio.jpg


As you can see in the attached image there is a menu called navigation and several items are added to the menu, But i am not getting the radio buttom beside each of them.


What am i missing ?


Regards
Sajjad