Results 1 to 3 of 3

Thread: QFormBuilder+Designer's Promote to ...

  1. #1
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QFormBuilder+Designer's Promote to ...

    I was using a QFormBuilder to dynamically load a .ui file, embedded via .qrc and everything worked fine. Now I need to overload the

    Qt Code:
    1. virtual void dragLeaveEvent ( QDragLeaveEvent * event )
    To copy to clipboard, switch view to plain text mode 

    method of a QWidgetList, so I've implemented
    Qt Code:
    1. void MyListWidget::dragLeaveEvent ( QDragLeaveEvent * event )
    To copy to clipboard, switch view to plain text mode 

    needed. Of course, I've also set "Promote to..." MyListWidget from the designer. Anyway, when running, the MyListWidget is not constructed, which seems pretty logical, the form builder does not know where the binary code of the compiled MyListWidget is. How to make that available to the QFormBuilder too ? (or some other alternatives)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFormBuilder+Designer's Promote to ...

    I guess you would have to wrap the custom list widget into a designer plugin. Anyway, one might to ask what's the real benefit of loading .ui files dynamically but still embedding them as resources?
    J-P Nurmi

  3. #3
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFormBuilder+Designer's Promote to ...

    Thank you for the advice, now I'm fully relying on uic.

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.