mab
12th September 2006, 16:46
Hi,
Is it possible for designer custom widget to tell to designer (Qt 4), that include returned by QDesignerCustomWidgetInterface::includeFile() is global (ie. it should be generated like #include <something.h> and not #include "something.h" in .h file)?
I know it is possible to achieve desired behavior by adding attribute location to header element in .ui file (something like
<header location="global">rdswidget/smaptree.h</header>), but I need my custom widget to make designer to do it automaticaly. Adding this element to domXml() method of widget interface doesn't seem to work. :(
Thanks a lot
Martin
Is it possible for designer custom widget to tell to designer (Qt 4), that include returned by QDesignerCustomWidgetInterface::includeFile() is global (ie. it should be generated like #include <something.h> and not #include "something.h" in .h file)?
I know it is possible to achieve desired behavior by adding attribute location to header element in .ui file (something like
<header location="global">rdswidget/smaptree.h</header>), but I need my custom widget to make designer to do it automaticaly. Adding this element to domXml() method of widget interface doesn't seem to work. :(
Thanks a lot
Martin