How to generate ROOT class dictionary with QtCreator

Hi, I have a custom class with some slot connections. It works fine if I call it from ROOT cling interpreter (ROOT6). When I integrate my class into QtCreator, it only works if I add in my main function:


If I dont do that, then I get error messages about not being able to find the slots.

Do you know how to tell the compiler to do that instead of writing that in the main function? Is there a flag I can add in the project file .pro? I attach a small reproducer.

graphs.root (9.4 KB)
main.cpp (749 Bytes)
TH2Viewer.h (7.8 KB)
TH2Viewer.cpp (19.2 KB)

I think @pcanal can help you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.