For historical reasons, we need to keep our software compatible with Qt 4.8. The current branch is built on Qt 5.2.
Recently I have been trying to exploit the new features of some of the QWidget, like QAbstractScrollArea::setSizeAdjustPolicy. Unfortunately, when I do that, I cannot compile in Qt 4.8 and Visual Studio produce the following error
error C2039: 'AdjustToContents' : is not a member of 'QAbstractScrollArea'
Usually, I would use a precompiler directive to adapt the code for each version. In this case however, I cannot do that since qt designer is generating a .ui file which generates code on the fly.
Is there a way to let Qt know that I want to exclude some nodes of the .ui file when compiling?