Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QSize size = desktopRect.size() * qreal(0.9); what does it mean?
Amir Afendin last edited by
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
desktopRect's size so that the widget size gets adjusted as per the desktop screen size?
0.9 = 90/100