In this Qt version, obsolete functions and variables are now actually hidden in the header files if that compile definition is used.
QLayout::setMargin() -> setContentsMargins()
QPalette::Background -> QPalette::Window
QPainter::drawRoundRect() -> drawRoundedRect()