Results 1 to 3 of 3

Thread: QT creator / designer connects slots & signals, but where's the code?

  1. #1
    Join Date
    Aug 2009
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QT creator / designer connects slots & signals, but where's the code?

    Hi, I'm a beginner to QT, I'm using QT creator, and QT designer for the GUI.
    ( QT designer is the visual tool to design the GUI that pops out when editing a .ui file in QT creator, right? )

    This creates a method that gets triggered when the signal occurs, (this is called a slot, right? ) but I don't see anywhere in the code the connect statement to connect the slot and the signal.
    Where is it? is it being created in some hidden base classes of the MainWindow class or something? ( I'm using the wizard and deriving from QMainWindows )

    Just for curiosity.
    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QT creator / designer connects slots & signals, but where's the code?

    If the methodes generated follow the pattern on_<objectname>_<signalname> then the code is in QMetaObject::connectSlotsByName
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Aug 2009
    Posts
    28
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: QT creator / designer connects slots & signals, but where's the code?

    creator,especially in embedded world, it's very useful!!

Similar Threads

  1. Nested signals and slots
    By vishva in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2006, 09:47
  2. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  3. Connecting signals & slots across different threads
    By jyoti kumar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 12:40
  4. Order of signals and slots
    By Morea in forum Newbie
    Replies: 1
    Last Post: 26th February 2006, 22:09
  5. [QT4] threads, signals, and slots, please help.
    By ucntcme in forum Qt Programming
    Replies: 12
    Last Post: 25th January 2006, 14:23

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.