ich komm einfach nicht dahinter, warum der Slot nicht ausgeführt wird
Ich habe mein MainWindow in welche ich ein Child erzeuge
Code: Alles auswählen
void MyMainWindow::openChild()
{
//Session erstellen
session = new MyChild("Simulation Modules");
session->createSessionWidget();
//Session anzeigen
mdiArea->addSubWindow(session);
//Connections
connect(session->rbProcess, SIGNAL(triggered()), session, SLOT(openModul()));
session->show();
}Code: Alles auswählen
MyChild::MyChild(QString sTitle)
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(sTitle);
}
void MyChild::createSessionWidget()
{
//GroupBox festlegen
QGroupBox *gbSource = new QGroupBox(tr("Source"));
QRadioButton *rbTophat = new QRadioButton(tr("Tophat"));
QRadioButton *rbProcess = new QRadioButton(tr("Processed Measured"));
QRadioButton *rbSynthes = new QRadioButton(tr("Synthesized Physical"));
QVBoxLayout *blSource = new QVBoxLayout;
blSource->addWidget(rbTophat);
blSource->addWidget(rbProcess);
blSource->addWidget(rbSynthes);
gbSource->setLayout(blSource);
QGridLayout *grid = new QGridLayout;
grid->addWidget(gbSource,0,0);
grid->setSizeConstraint(QLayout::SetMinimumSize);
this->setLayout(grid);
}
void MyChild::openModul()
{
QMessageBox::information(this, "Test", "Test");
}Die Frage ist jetzt, wo liegt der Fehler, dass meine MessageBox nicht angezeigt wird
Vielen Dank für eure Hilfe.
Viele Grüße
Jana