Results 1 to 3 of 3

Thread: Where to add slot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Where to add slot

    Hello, sorry for a very stupid question. I am learning QT4 Designer, but not about how to design widget or component. What I want to know, after designing qmake will generate the blabla.h right? We create main.cpp manually. The problem is, if I want to add slot or methods in the widget, where should I put it? If I put at the .h file, it will replaced by the new one. If I create blabla.cpp, doesn't it mean, I can't create my own slot function?

    PS: I have try to find in google and in QT Assistant, but no result. May someone point out where should I find?
    Last edited by garry_3peace; 24th August 2008 at 09:28.

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

    Default Re: Where to add slot

    There are several options explained on
    http://doc.trolltech.com/4.4/designe...component.html

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

    garry_3peace (24th August 2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Where to add slot

    Thank you

Similar Threads

  1. How to declare SLOT as a parameter to member function?
    By QPlace in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2018, 00:41
  2. Problem When Creating my own Slot
    By Fatla in forum Qt Programming
    Replies: 12
    Last Post: 6th June 2008, 14:44
  3. Replies: 2
    Last Post: 23rd May 2008, 13:22
  4. Object::connect: Parentheses expected, slot...
    By bnilsson in forum Qt Programming
    Replies: 5
    Last Post: 5th April 2008, 15:02

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.