QPixmap originalPixmap = QPixmap::grabWidget(this); QImage *image = new QImage(originalPixmap.toImage());
QAtomicInt atomInt(15); int n = atomInt.fetchAndAddOrdered(1) + 1; // n == 16, atomInt == 16