Page 1 of 1

[SOLVED] Can't load my plugin once it embeds a QDialog window.

Posted: Fri Sep 04, 2015 2:57 pm
by PabloC
Hi!

I'm having trouble using my plug-in in Cloud Compare after trying to use a QDialog window as in the RANSAC plug-in.
My plug-in compiles flawlessly and gives the expected outputs if using fixed values but once I try to add a dialog window, it does not show-up anymore in the plug-ins list (even if it still compiles without problem.)

Is there any specific code to add in order to use a QDialog window inside a Cloud Compare plug-in?

Many thanks in advance.
Pablo C.

PS: The plug-in's code can be seen here

Re: Can't load my plugin once it embeds a QDialog window.

Posted: Fri Sep 04, 2015 3:59 pm
by daniel
Hi Pablo,

Maybe it's something silly: can you try to replace the '.hpp' extension by '.h'. The CMake scripts are only looking for '.h' files (in order then to detect the 'Q_OBJECT' macros and generate the mocable files).

Re: Can't load my plugin once it embeds a QDialog window.

Posted: Sat Sep 05, 2015 5:58 pm
by PabloC
Hi Daniel,

Fortunately you were right!
It's now time to change my naming habits.

Many thanks.
Pablo C.