PDA

View Full Version : plugin crashes designer but not app



jayw710
27th June 2007, 19:26
Hi there,

I have a plugin that crashes designer when I place it on a form, but works flawlessly within an app.

How do you locate the code within a plugin that causes this behavior? Can you add print statements that you can see someplace? Is there another way?

Thank you,

Jay

jayw710
27th June 2007, 20:37
I have a plugin that crashes designer when I place it on a form, but works flawlessly within an app.

How do you locate the code within a plugin that causes this behavior? Can you add print statements that you can see someplace? Is there another way?

Well, I traced it to the Q_PROPERTY functions. It appears that Designer tries out every one of these functions upon creation of the widget. There was a small error in one of those functions.

So, advice for Designer plugins: If a plugin works in an app but crashes Designer, try calling all of the Q_Property functions and see if they hicough.

Jay

p.s. I'd still like to know how to track code errors within Designer, if people have suggestions.