this->mnuTbb1 = new QMenu(); this->mnuTbb1Item1 = new QAction(this->mnuTbb1); this->mnuTbb1Item1->setText(tr("модуля IDBaz")); this->mnuTbb1Item2 = new QAction(this->mnuTbb1); this->mnuTbb1Item2->setText(tr("модуля IDP")); this->mnuTbb1->addAction(this->mnuTbb1Item1); this->mnuTbb1->addAction(this->mnuTbb1Item2);
QStringList QDir::entryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
C++ (Qt) QAction *action;foreach (const QString& fileName, list) { action = new QAction (fileName, this); menu->addAction (action);}