MyStruct{int a;float b;}char * array= new char [sizeof(MyStruct)];MyStruct * pArray = (MyStruct*)array;
C++ (Qt)MyStruct * pArray = new MyStruct;..delete pArray;