Reuse qcc dialog in plugin
Posted: Wed Aug 24, 2022 2:19 pm
Hello,
in my plugin I want to instantiate a dialog, i.e. the ccRegistrationDlg from the qcc directory.
Is this or should this be possible at all?
My steps so far in my plugin's CMakeLists.txt:
The problem is that some symbols from the MainWindow are not found which are required by ccRegistrationDlg and thus I get a linker error. Is there a way of reusing the dialog or do I have to copy the sources to my plugin?
Thank you in advance for your help!
Best regards,
Philip
in my plugin I want to instantiate a dialog, i.e. the ccRegistrationDlg from the qcc directory.
Is this or should this be possible at all?
My steps so far in my plugin's CMakeLists.txt:
Code: Select all
...
include_directories( ${CloudCompare_SOURCE_DIR} )
set_property(TARGET ${PROJECT_NAME} APPEND PROPERTY AUTOUIC_SEARCH_PATHS ${CloudCompare_SOURCE_DIR}/ui_templates)
target_sources( ${PROJECT_NAME}
PRIVATE
${CloudCompare_SOURCE_DIR}/ccRegistrationDlg.cpp
)
...
Thank you in advance for your help!
Best regards,
Philip