How to create header file for ui I downloaded?
-
wrote on 5 Jul 2019, 03:24 last edited by
Hi,
I found a Python project built with PyQt and I would like to use its UI but in a C++ application. How do I generate its .h file?
-
Yeah, it's got a .ui file. But I need an .h file to create a makefile with cmake, don't I? So that my application can interface with the .ui... how do I establish the link otherwidse?
Yeah, the project was licensed under GNU.@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.
-
Hi,
I found a Python project built with PyQt and I would like to use its UI but in a C++ application. How do I generate its .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.
-
wrote on 5 Jul 2019, 04:06 last edited by
Yeah, it's got a .ui file. But I need an .h file to create a makefile with cmake, don't I? So that my application can interface with the .ui... how do I establish the link otherwidse?
Yeah, the project was licensed under GNU. -
Yeah, it's got a .ui file. But I need an .h file to create a makefile with cmake, don't I? So that my application can interface with the .ui... how do I establish the link otherwidse?
Yeah, the project was licensed under GNU.@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.
-
Yeah, it's got a .ui file. But I need an .h file to create a makefile with cmake, don't I? So that my application can interface with the .ui... how do I establish the link otherwidse?
Yeah, the project was licensed under GNU.@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?:
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.
wrote on 6 Jul 2019, 01:50 last edited by@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!
1/6