Create Widget and display it pure c++

posx is initialised in the constructor since it’s a member variable :