Unsolved QSize size = desktopRect.size() * qreal(0.9); what does it mean?
-
Just watching some example here and kind of stacked on this line of code
QSize size = desktopRect.size() * qreal(0.9);
especially why do we need qreal(0.9) here? I know what qreal does but in this very situation i have no idea about purpose of this chunk of code.
-
@Amir-Afendin I think to get
90%
ofdesktopRect
's size so that the widget size gets adjusted as per the desktop screen size?
0.9 = 90/100