Hello Ivaylo, I am using the MITK as a library, but I had a similar issue. I think the problem is the IDE trying to find the files in the folder containing the top-level CMakeLists.txt, then every library has to be relative to the top-level directory. There are two ways to avoid this, use include_directories() or target_include_directories() in your top-level CMakeLists.txt. I recommend the second option.
I'm assuming you understand what the two commands above, if it's not the case you can see my answer on how use MITK as a library, for examples: https://stackoverflow.com/questions/58161124/how-to-use-mitk-as-a-library/62501246#62501246 On Sat, Jun 27, 2020 at 9:49 AM Ivaylo Angelov <ivaylo_ange...@gmx.de> wrote: > Dear all, > > I would highly appreciate some advice regarding the following issue: > > I have a plugin with a view in which I use the > QmitkTransferFunctionGeneratorWidget (though the question is more general, > could be any Qmitk widget). > Now I would like to extend widget, therefore I created a custom one, > inheriting from QmitkTransferFunctionGeneratorWidget within my plugin. (I > am working with the Project template, by the way) > The last thing I would like to do is to be able to promote a widget within > my view to my custom widget and this is where I > don't know how to continue. > For Qmitk widgets it seems to just work by adding the header file name and > the class name in the "Promoted widgets" tab > of Qt Creator... given that I am inheriting from a Qmitk widget, is there > a neat way to accomplish the same with my custom widget? > > I am aware that this has a lot to do with Qt but I am trying to understand > how it is possible for the Qmitk widgets to be found by just typing in the > name of the header file without the full path (I have added a screenshot to > show what I mean) and I guess understanding that would help me accomplish > what I am trying to do now. > > Thank you in advance and I look forward to hearing from you! > > Kind regards > Ivaylo Angelov > _______________________________________________ > mitk-users mailing list > mitk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mitk-users >
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users