• Does QtWidget's stylesheet set globally with QApplication::setStyleSheet() affect only controls declared in ui files? Or controls that are created dynamically with new and satisfies selectors will be styilized too?

  • Moderators

    They should affect any widget as far as I know. There's no real difference between what's generated by the ui files and what you write manually, it boils down to the same C++ code.

  • @kshegunov
    I was an idiot :D It turned out that I totally forgot to clean and rebuild project from time to time and files specified in the resource file were not recompiled and embedded to the executable. But thanks anyway for clarifying.

Log in to reply