well, its very important to know the difference between the two.
const QSize sizeHint() means the function would return a const QSize, whereas
QSize sizeHint() const means the function would not modify any of the data members or are read-only functions. such functions can be called for a const and non const objects and such functions have const this pointers
Bookmarks