I'm developing an application with Qt, a framework with which I'm not at all familiar, and I'm attempting to hide and show a DockWidget that I created using designer.
Unlike many of the seemingly similar questions about hiding and showing dockwidgets in Qt is that I made my widget entirely with Qt Designer, so I don't know how to link much of the code I've found in these questions' answers. Essentially, I have no mention of a dockwidget in my *.cpp files, but I do in my .ui file.
How can I incorporate this Designer-created dockwidget into my code to make it visible and invisible?
Sorry for such a nooby question.
Thanks, erip
When you build your application,
qmake
generatesh
from your ui files. So for instanceui_dlg_about.ui
is translated into aui_dlg_about.h
automatically. Usually in a folder called GeneratedFiles or something like that. You can then create an actual customisable dialog class which you use in your application by creating something along the following:dlg_about.h
dlg_about.cpp
It is also possible for your dialog to not be derived from
ui_dlg_about
but having it as a member:dlg_about.h
dlg_about.cpp