I'm trying to call constructor with C++11 format, but couldn't get it from other post of same name:
c++ call constructor from constructor
CubeWidget::CubeWidget(QWidget *parent) :
QOpenGLWidget(parent),
geometries(0),
texture(0),
angularSpeed(0),
receivedStopCommand(false)
{
sound = new ParameterizedSoundTest;
}
explicit CubeWidget::CubeWidget(parent) : CubeWidget::CubeWidget(int x, int y, int w, int h, QWidget *parent = 0)
{
setGeometry(QRect(x,y,w,h));
show();
}
Aucun commentaire:
Enregistrer un commentaire