How can I execute a .ui from qt designer file in clion

Answered

I am using qt designer in MacOs and then from the .ui file I get a .h file, but I cannot get a .cpp file. So is there any way that you can suggest so that I can execute my code in clion? I read in various blogs that the uic does not give .cpp files anymore, instead the header file contains all methods as inline (inside the class) methods. 

1
1 comment

Hi! You can configure such behaviour via CMake. Please take a look at the following articles: https://cmake.org/cmake/help/v3.0/prop_tgt/AUTOUIC.html, https://wiki.qt.io/Using_CMake_build_system. 

0

Please sign in to leave a comment.