ok so i tried(did not try to handle memory leeks)
QObject::connect(Tabs,
SIGNAL(tabCloseRequested
(int)),
Tabs, SLOT(removeTab(int)));
QObject::connect(Tabs, SIGNAL(tabCloseRequested(int)),
Tabs, SLOT(removeTab(int)));
To copy to clipboard, switch view to plain text mode
i thought that if this worked then i would make a function in my MainWindow class that would both delete the content and remove the tab but this did not work, what am i doing wrong?
i got it to work!! i used a function that deleted the allocated widgit with deleteLater, i used
QObject::connect(Tabs,
SIGNAL(tabCloseRequested
(int)),
this, SLOT(RemoveTab(int)));
QObject::connect(Tabs, SIGNAL(tabCloseRequested(int)),
this, SLOT(RemoveTab(int)));
To copy to clipboard, switch view to plain text mode
, thanks for helping
Bookmarks