Results 1 to 5 of 5

Thread: Create more signal and slot on widget are designed by hand

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Create more signal and slot on widget are designed by hand

    How to create more signal on the widget are designed by hand? help me!!!

    Now, I can only more signal by overriding methods on that widget.
    __________>positive attitude is the key to success!<_________
    Contact me via the mailbox: sokhanhlovedark@gmail.com

  2. #2
    Join Date
    Apr 2011
    Location
    Russia
    Posts
    85
    Thanks
    2
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Create more signal and slot on widget are designed by hand

    Define
    Qt Code:
    1. signals:
    2. void yourSignal();
    To copy to clipboard, switch view to plain text mode 

    and call:
    Qt Code:
    1. emit yourSignal();
    To copy to clipboard, switch view to plain text mode 

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

    khanhsk (5th October 2011)

  4. #3
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Create more signal and slot on widget are designed by hand

    Thanks a lot! But where to write the code? Because these widget are designed by hand, even if the widget was designed by the code is OK!
    Quote Originally Posted by Jonny174 View Post
    Define
    Qt Code:
    1. signals:
    2. void yourSignal();
    To copy to clipboard, switch view to plain text mode 

    and call:
    Qt Code:
    1. emit yourSignal();
    To copy to clipboard, switch view to plain text mode 
    __________>positive attitude is the key to success!<_________
    Contact me via the mailbox: sokhanhlovedark@gmail.com

  5. #4
    Join Date
    Apr 2011
    Location
    Russia
    Posts
    85
    Thanks
    2
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Create more signal and slot on widget are designed by hand

    Write particularly that is necessary for you

  6. The following user says thank you to Jonny174 for this useful post:

    khanhsk (6th October 2011)

  7. #5
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Create more signal and slot on widget are designed by hand

    Thanks for the help
    __________>positive attitude is the key to success!<_________
    Contact me via the mailbox: sokhanhlovedark@gmail.com

Similar Threads

  1. Replies: 2
    Last Post: 3rd May 2011, 20:22
  2. Signal connected to slot (or signal)
    By Althor in forum Newbie
    Replies: 2
    Last Post: 6th July 2010, 10:00
  3. Signal and slot
    By seldeepchan in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2008, 10:05
  4. Replies: 1
    Last Post: 8th November 2007, 17:11
  5. signal slot conection using a string, not a SLOT
    By rianquinn in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2006, 18:52

Tags for this Thread

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.