Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Center::Center(){
- setViewMode(QMdiArea::TabbedView);
- setTabShape(QTabWidget::Triangular);
- }
- Center::~Center(){
- QHashIterator<QString, QMdiSubWindow*> i(hashWidget);
- while (i.hasNext()){
- i.next();
- delete i.value();
- }
- }
- void Center::open(const QString& nom){
- QWidget *w = new QWidget();
- w->setWindowTitle(nom);
- hashWidget.insert(nom, addSubWindow(w));
- QString s(hashWidget.key(activeSubWindow()));
- cout << "Debug" << s.toStdString() << endl;
- }
- void Center::close(const QString& nom){
- removeSubWindow(hashWidget.value(nom));
- }
Add Comment
Please, Sign In to add comment