How to add .qrc and .qss files into CMake
sush123 last edited by
I have icon.qrc and Stylesheet.qss files both should come under CMake i have placed it like:
and in the main.cpp i am reading that flex_ui_stylesheet.qss file like :
QString styleSheet = textStream.readAll();
but i am unble to read and get expected output , can someone suggest me where i am going wrong .
Thanks in advance
Please take a look at the CMake Manual in Qt's documentation. It shows the macros available to handle .qrc files.
flex_ui_stylesheet.qsshas nothing to do with cmake. It should be in the resource file itself.