Results 1 to 4 of 4

Thread: how to add custom signal to designer

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to add custom signal to designer

    hi friends,
    if i am customizing a new signal from current signal of QWidget() ..using signal mapper or any ..
    ex: QPushButton-> SIGNAL clicked(int )

    is it possible to add this to designer ... ?

    i am using qt4.4.3

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to add custom signal to designer

    Hi,

    you have to provide a plugin for your new object to use special signal and slots: Creating Custom Widget Extensions.

    Lykurg

  3. The following user says thank you to Lykurg for this useful post:

    wagmare (3rd March 2009)

  4. #3
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to add custom signal to designer

    Quote Originally Posted by Lykurg View Post
    Hi,

    you have to provide a plugin for your new object to use special signal and slots: Creating Custom Widget Extensions.

    Lykurg
    That's one option, and possibly the one creating the most headaches.

    An alternative would be to "promote" the widget (Right click, "Promote to...")

  5. The following user says thank you to ktk for this useful post:

    wagmare (3rd March 2009)

  6. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to add custom signal to designer

    Quote Originally Posted by ktk View Post
    An alternative would be to "promote" the widget (Right click, "Promote to...")
    Yepp, thats right, but with this procedure you can't use new signals and slots and properties in designer. Only these ones of the basis class.

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. Custom signal in qt designer
    By txandi in forum Qt Tools
    Replies: 1
    Last Post: 4th December 2008, 20:25
  4. Global includes with designer custom widgets
    By mab in forum Qt Programming
    Replies: 2
    Last Post: 5th October 2006, 22:06
  5. Replies: 4
    Last Post: 1st March 2006, 23:11

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.