Results 1 to 3 of 3

Thread: Connect Button to a custom slot

  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Connect Button to a custom slot

    hello everyone! i'm trying to connect a button to a custom slot. In qt3 there was a dialog to deal with this, bur in qt4 there isn't!
    In the Edit>edit Signals/Slot i only get the base slots...not the ones i created in myObject.h !!!
    can someone help?!

  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: Connect Button to a custom slot

    Hi. Unfortunately you can't. See FAQ.
    J-P Nurmi

  3. #3
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Connect Button to a custom slot

    thnks for the link! I found there the solution for this problem!
    i used a Dialog with auto-connect:
    void on_<widget name>_<signal name>(<signal parameters>);
    in my case:
    void on_btOpen_clicked();

    thanks....and i hope this helps a lot of ppl out there with this same problem

Similar Threads

  1. Qt Designer & Qt4, connect to my own slot.
    By geitosten in forum Newbie
    Replies: 2
    Last Post: 17th February 2007, 19:22
  2. custom slot + Designer
    By bashamehboob in forum Qt Tools
    Replies: 1
    Last Post: 28th April 2006, 15:17
  3. custom maximize button---
    By Naveen in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 13:11
  4. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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
  •  
Qt is a trademark of The Qt Company.