Most of the errors are related to the missing includes for headers for QVBoxLayout and QHBoxLayout so the resolution is to add those two includes in finddialog.cpp

And as for the one related to the case sensitivity in findClicked() function see if you didn't modified something there, because the code there (the code from your first post) seems correct.