Results 1 to 5 of 5

Thread: QT4: Custom widget for QT Designer

  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default QT4: Custom widget for QT Designer

    I'm sorry if this has been asked before. If it has, please point me to the correct post.

    I've created a subclass of QTextEdit, and it already works when I don't use Designer, but use pure code to create my dialogs.

    Now, from there, how do I make it so I can use it inside Designer, like any other widget? I already found some things inside the documentation, but I never actually found out how to tell Designer to display it in the toolbox. And a lot of other things were unclear too. Could someone point me to a good tutorial or something?

    Thanks!
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT4: Custom widget for QT Designer

    If you have a widget plugin, you have to copy it to $QTDIR/plugins/designer (or if you use Qt3, to any directory that Designer looks into).

  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QT4: Custom widget for QT Designer

    Thanks. That's probably it.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  4. #4
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QT4: Custom widget for QT Designer

    Is C:\Program Files\Trolltech\Qt VS Integration\plugins
    good enough if you are just using the Windows version?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT4: Custom widget for QT Designer

    Quote Originally Posted by gfunk
    Is C:\Program Files\Trolltech\Qt VS Integration\plugins
    good enough if you are just using the Windows version?
    I've never used the VS Integration, but it should be rather C:\...\Qt VS Integration\plugins\designer.

Similar Threads

  1. Custom widget - Only works in Designer
    By Darhuuk in forum Qt Tools
    Replies: 6
    Last Post: 8th January 2008, 00:46
  2. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38
  3. Custom widget + Qt Designer
    By chombium in forum Qt Tools
    Replies: 1
    Last Post: 12th April 2006, 20:33
  4. Replies: 4
    Last Post: 1st March 2006, 23:11
  5. Replies: 4
    Last Post: 6th February 2006, 14:30

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.