How to create header file for ui I downloaded?
-
@cerr said in How to create header file for ui I downloaded?:
But I need an .h file to create a makefile with cmake, don't I?
Nope. You ask CMake to automatically convert the .ui file to a .h file.
-
@cerr said in How to create header file for ui I downloaded?:
I found a Python project built with PyQt and I would like to use its UI but in a C++ application.
Is the UI implemented using Python code, or does it have a *.ui file? If it haas a *.ui file, you can copy the file straight into your C++ project.
Remember to check the PyQt project license.
-
@cerr said in How to create header file for ui I downloaded?:
But I need an .h file
It's generated by uic.exe tool during building your app.
-
@cerr said in How to create header file for ui I downloaded?:
But I need an .h file to create a makefile with cmake, don't I?
Nope. You ask CMake to automatically convert the .ui file to a .h file.
-
@JKSH said in How to create header file for ui I downloaded?:
@cerr said in How to create header file for ui I downloaded?:
But I need an .h file to create a makefile with cmake, don't I?
Nope. You ask CMake to automatically convert the .ui file to a .h file.
Ah, excellent, that's great! Thanks for this!