"after closeEvent" meaning "after closeEvent returns" or "after closeEvent is called"?
meaning "after closeEvent accepts the event and return", and I remember that the widget closed is a MdiSubWindow with WA_DeleteOnClose that contains frmarticle (inherited from QWidget)
It'd say your viewport->close(Article) tries to reference some item in some list and fails because the list is smaller than it expects.
Yes, I thought it too, but viewport->close(Article); is called to do just this:
void CViewports::close(EViewport win)
{
switch(win)
{
// Article
case 1:
{
if(pArticle) //pointer to frmarticle, not null for sure
{
pArticle=NULL;
wArticle=NULL;
}
break;
}
[...]
}
void CViewports::close(EViewport win)
{
switch(win)
{
// Article
case 1:
{
if(pArticle) //pointer to frmarticle, not null for sure
{
pArticle=NULL;
wArticle=NULL;
}
break;
}
[...]
}
To copy to clipboard, switch view to plain text mode
Maybe, since the problem seems to be some list, could be the QTableWidget present in frmarticle be involved in the problem, or I'm totally off-road?
Bookmarks