First check if your slot is being called, i.e. have you made the connection properly?
If the slot is being called, then modify the slot like this, creating a widget on the stack will show it and delete it even before you can see it. Widget has to created on heap, like this.
void MainWindow::openNets()
{
netWindow * n = new netWindow(this); //Also do care to set a parent to newWindow class as a good Qt practice.
n->show();
}
void MainWindow::openNets()
{
netWindow * n = new netWindow(this); //Also do care to set a parent to newWindow class as a good Qt practice.
n->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks