ocr.cpp changes for including qtwidgets