Results 1 to 3 of 3

Thread: Global includes with designer custom widgets

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default 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
    Qt Code:
    1. <header location="global">rdswidget/smaptree.h</header>
    To copy to clipboard, switch view to plain text mode 
    ), 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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Global includes with designer custom widgets

    Does that really make a difference if the include is "global" or "local"?

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default 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.

Similar Threads

  1. QT4 custom designer plugin properties ignored
    By Intangir in forum Qt Programming
    Replies: 7
    Last Post: 23rd May 2015, 11:56
  2. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  3. How to create pop up widgets in designer.
    By gsQT4 in forum Qt Tools
    Replies: 1
    Last Post: 25th May 2006, 16:40
  4. Replies: 4
    Last Post: 1st March 2006, 23:11
  5. Replies: 2
    Last Post: 14th February 2006, 15:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.