I have a QToolBox and adding pages to it in runtime
Each page has scroll area, inside scroll area comboboxes area dded at runtime
Is it possible to get page name of any particular combobox?

i tried code shown below, but it didnt work...


Qt Code:
  1. QToolBox *temp=new QToolBox;
  2. temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget()->parentWidget());
  3. QString fname=temp->itemText(temp->currentIndex());
  4. std::cout<<"FILE NAME:"<<fname.toStdString()<<endl;
To copy to clipboard, switch view to plain text mode 


also tried using
Qt Code:
  1. temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget());
To copy to clipboard, switch view to plain text mode 

but program was crashing both time....