QObject oTest; int s1 = sizeof(QObject); int s2 = sizeof(oTest);
C++ (Qt)#include <QtGUI> int main( void ) { for (int i = 0; i < 16; ++i) { int * mark1 = new int; QObject * test = new QObject(); int * mark2 = new int; int delta = (mark2 > mark1) ? (mark2 - mark1) : (mark1 - mark2); printf("delta[%d] = %d\n", i, delta * sizeof(int) - 16); } return 0;}