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...
temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget()->parentWidget());
QString fname
=temp
->itemText
(temp
->currentIndex
());
std::cout<<"FILE NAME:"<<fname.toStdString()<<endl;
QToolBox *temp=new QToolBox;
temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget()->parentWidget());
QString fname=temp->itemText(temp->currentIndex());
std::cout<<"FILE NAME:"<<fname.toStdString()<<endl;
To copy to clipboard, switch view to plain text mode
also tried using
temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget());
temp=dynamic_cast<QToolBox *>(tempCheckBox->parentWidget());
To copy to clipboard, switch view to plain text mode
but program was crashing both time....
Bookmarks