Please post the body of the constructor of class "simples". I hope you know what a constructor is... If not, you should first learn at least basics of C++ before taking on Qt.