Results 1 to 7 of 7

Thread: SIGNALS error....what's wrong?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: SIGNALS error....what's wrong?

    Quote Originally Posted by nupul
    and this is the signal

    Qt Code:
    1. void MyDesktop::showMyComputerMenu()
    2. {
    3.  
    4. qDebug("My computer signal activate");
    5.  
    6. }
    To copy to clipboard, switch view to plain text mode 
    You can't implement signals --- moc does this for you.

  2. #2
    Join Date
    Mar 2006
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Cool Re: SIGNALS error....what's wrong?

    Well Jacek seems that you raced me to the correct answer ;--)

    You see, after posting and a few replies, I rummaged through the docs. I took the character-map example (it had signals) compiled it and voila...it worked....I read through the Signals and Slots section of the docs and they've mentioned it (not in bold...which i feel it should) that you don't implement signals!!

    I was slightly taken aback, I grep-ed through the sources and found that you indeed don't implement them....I picked up my qt book and it was just mentioned as a one-liner that 'you don't implement them directly'

    i loathe myself ............. i just completely overlooked this concept (to be honest...i never needed to implement signals till date, Qt's inbuilt classed provided me with enough resources. ;-) )

    well I am glad that you people are there to help newbies like me....(my designation as an intermediate user has gone to the dumps )

    I have highlighted the above in bold so that dimwits like me avoid making the same mistake and wonder what the hell (actually the other 4 letter word ) is wrong!!!!!!!!!!!

    Thanks a million.

    Nupul

    Jacek a special thanks to you though, you've always read through my code (you have, right? ) and given me accurate replies. You, jpn, CBM, wysota (always the first one to spot typographic errors in my post!...he catches those errors which i enter in my post by mistake!) deserve a special thanks...a treat to you guys....buy yourself a cuppa coffee!!!!!!!!!!!!!!!

Similar Threads

  1. Signals are delayed on X11?
    By Cruz in forum Qt Programming
    Replies: 13
    Last Post: 18th February 2009, 12:59

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.