How are u calling the changeToText and changeToPLotter functions ??
I am not sure if you can set central widget twice.
You may try this - set a QStackedWidget as central widget for the main window, and on the changeToText and changeToPLotter functions, set the text or plotter as the widget![]()
Bookmarks