How to add a slot to my main window in Qt builder?

Posted by George Edison on Stack Overflow See other posts from Stack Overflow or by George Edison
Published on 2010-04-28T03:46:34Z Indexed on 2010/04/28 3:53 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

I am using Qt Builder to create a simple window.

I used the menu editor to add a menu.

Now, I figured out how to connect one of the menu items to the close() method of the main window. My problem is how to add a slot to the main window. Here is what I have:

private slots:
    void OnAbout();

However, I can't get this method to show up in the 'Signals and Slots Editor'. How can I get it to show up?

© Stack Overflow or respective owner

Related posts about qt

Related posts about builder