Global includes with designer custom widgets
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
Code:
<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
Re: Global includes with designer custom widgets
Does that really make a difference if the include is "global" or "local"?
Re: Global includes with designer custom widgets
It is bacause of libraries containing widgets pluged into designer, I want to make includes global. When somebody uses such library, adds -I/path/to/my/library to makefile, draws his widgets in designer using plugins from libray and generates .h from .ui files, he gets .h files where are includes like #include "library_widget.h". Happily gcc will find library_widget.h in /path/to/my/library even with these "", but it seems to me, that #include <library_widget.h> would be much cleaner.