cherry-pick from new_ui_code

This changes the setStyleSheet interface in cre.cpp, which will be used for implementing css menu in crereader.

EDIT: I am using master-dev branch because the master branch is frozen for stable release now. Will merge this branch back to master after release.