Sysprogs forums › Forums › VisualGDB › Raspberry Pi Qt – ui_Dialog.h not generated
Tagged: Qt Raspberry Pi
- This topic has 4 replies, 2 voices, and was last updated 4 years, 8 months ago by
nahumb.
-
AuthorPosts
-
February 17, 2021 at 14:42 #29917
nahumb
ParticipantHi,
I’m trying to add a new dialog to a raspberry pi Qt application that has some working dialogs.
The Dialog.ui file is generated by Qt Designer and after adding it I can see it is added to the CMakeLists.txt file, I rebuild the project however while all the previous ui_xx.h files are generated, the new ui_Dialog.h is not.
I have removed one of the previous x.ui files (remove, not delete) and rebuild the project but this removed file ui_x file was still generated (as it was not really removed?)
I renamed its file name and the build could not proceed.
Now I have renamed its name back to the original name and add it back, but now a ui_x.h file for this file is also not generated any more.
Anny sugestions?
Thanks,
Nahum.
-
This topic was modified 4 years, 8 months ago by
nahumb.
February 17, 2021 at 14:58 #29919support
KeymasterHi,
This looks like an issue with the Qt build scripts and not VisualGDB. Please refer to the Qt CMake documentation and/or Qt forums for further help with this.
That said, if you can successfully build the project manually (via the command line), but it does not work with VisualGDB, please try comparing the build command lines as shown here. If you can confirm that the command line used by VisualGDB is specifying something incorrectly, we should be able to fix it.
February 18, 2021 at 04:26 #29923nahumb
ParticipantHi,
Thanks for the prompt reply.
Unfortunately, I have not found any reference in the Qt related resources.
I was also trying to perform the manual build process, but I must say that my limited knowledge prevents me from getting any significant information from that.
As another approach, I have tried to create new CMake Qt project using the VGDB wizard. This includes only a MainWindow.ui, and a ui_MainWindow.h file is generated.
Now I have tried to add another dialo.ui file, and again, ui_dialog.h is not generated.
I removed both the MainWindow.ui and the dialog.ui files (i don’t see them in the auto generated CMakeList.txt), but yet the uiMainWindow.h is generated. And again, this is in a completely new generated template application!
I’m using VGDB R5.5R4 build 3920.
Thanks,
NAhum.
February 23, 2021 at 11:28 #29967nahumb
ParticipantHi,
Any updates?
Thanks,
Nahum.
February 26, 2021 at 01:26 #30002nahumb
ParticipantIssue was resolved.
#include “ui_xxxx.h” MUST be included in a source.cpp file for each xxxx.ui file.
https://cmake.org/cmake/help/v3.9/prop_tgt/AUTOUIC.html
Thanks,
Nahum
-
This topic was modified 4 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.