Results 1 to 2 of 2

Thread: Qt Designer, Signal and slots for own methods

  1. #1
    Join Date
    Sep 2010
    Posts
    22
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Designer, Signal and slots for own methods

    Hello,
    I'm using Qt 4 commercial with Visual studio.

    By using Qt Designer Signal/slot editor i can add slot/signals.

    But i want to have slots that are consisted of my own methods.
    For example a method outputs a dialog box when i click pushButton?
    What should i do to see my own method in Signal Slot editor's Slot column?

    Thank you very much

  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: Qt Designer, Signal and slots for own methods

    Goto the signal&slot mode of designer, then choose your component which emits a signal and drag it to the base widget. In the opening dialog you have a button called "change". Here you can define custom slots and signals.

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

    seltra (17th September 2010)

Similar Threads

  1. Replies: 1
    Last Post: 8th September 2010, 19:31
  2. QT Designer and autorecognizing slots
    By QPlace in forum Qt Tools
    Replies: 1
    Last Post: 16th May 2009, 18:11
  3. Qt Designer 4.4.1 Signals and Slots
    By M4d_Us3r in forum Qt Tools
    Replies: 1
    Last Post: 13th October 2008, 21:03
  4. Signal/Slot methods
    By Micawber in forum Newbie
    Replies: 4
    Last Post: 3rd August 2007, 15:23
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28

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.