QPushButton *But = new QPushButton("Button");QPushButton Button;Button = *(But);
C++ (Qt)QPushButton *But = new QPushButton("Button");QPushButton Button;void* pBut=(void*)But;void* pButton=(void*)&Button;memcpy(pBut,pButton,sizeof(QPushButton));