Results 1 to 7 of 7

Thread: Odd behavior Signals and Slots

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: Odd behavior Signals and Slots

    Quote Originally Posted by Arthur
    Thanks for your input.

    Strange enough it only works in the example I wrote. Even if I have a reference parameter only, it doesn't work...

    Note that this is the only case in which I experienced this behavior. Is it because the struct (DirectX SDK), is not a QObject?

    Arthur
    No. In most cases the parameters to a signal or slot are not a QObject, e.g. int float, double, bool, QString, QVariant, etc are not QObjects.

    Did you try what Jacek suggested, i.e. 'const Type &' rather than 'Type const &'?

    Oops, your post changed as I added this, so now it doesn't make as much sense as a reply...

    Make sure you include the header that defines 'D3DXMATRIX' in your header file.
    Last edited by Chicken Blood Machine; 7th April 2006 at 20:03.
    Save yourself some pain. Learn C++ before learning Qt.

Similar Threads

  1. Signals and Slots
    By 83.manish in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 10:31
  2. Replies: 12
    Last Post: 23rd June 2008, 08:05
  3. Slots or new slots
    By Colx007 in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2008, 17:38
  4. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28
  5. Missing slots
    By Mariane in forum Newbie
    Replies: 1
    Last Post: 5th February 2006, 01:50

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.