Centering an uploaded photo after rounding it
-
Hi,
What are the exact dimensions of your picture ?
-
With the rounded part in its center ?
-
I saw your error, you changed the alignement.
You need to use Qt::AlignCenter
-
One issue I can see is that you are are calling size in your constructor. At this stage, the widget does not have any size yet. But also, why your QMainWindow size to create your target pixmap ?
-
One issue I can see is that you are are calling size in your constructor. At this stage, the widget does not have any size yet. But also, why your QMainWindow size to create your target pixmap ?
-
Looks like you are good, aren't you ?


