[quote author="spode" date="1317321543"]@
void prima::nuovo()
{
seconda s;
s.show();
close();
here:
goto here;
}
@
the window stops working...[/quote]
Oh, that's just so wrong in so many ways... see above.
But let's step through the code...
@
seconda s; // This creates the object
s.show(); // This shows it. It DOES NOT BLOCK AND WAIT FOR THE WIDGET TO CLOSE
close(); // This closes the window immediately.
@
Here's an exercise. What do you think the
@
here:
goto here;
@
code does? (Hint... tight, infinite loop)