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

Questions related to plugins development
Post Reply
PabloC
Posts: 7
Joined: Fri Sep 04, 2015 2:38 pm

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

Post 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
Last edited by PabloC on Tue Sep 08, 2015 12:42 pm, edited 1 time in total.
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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).
Daniel, CloudCompare admin
PabloC
Posts: 7
Joined: Fri Sep 04, 2015 2:38 pm

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

Post by PabloC »

Hi Daniel,

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

Many thanks.
Pablo C.
Post Reply