How do I make the bash shell available inside a widget ?

Something like in KDevelop where the Konsole is available in the bottom