Results 1 to 3 of 3

Thread: Problems connecting an array

  1. #1
    Join Date
    Sep 2008
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8

    Default Problems connecting an array

    Hi guys,

    I'm having difficulty at the moment when attempting to connect an array signal to another signal. I have a single instance of the class which works fine but the array just can't be connected.

    Qt Code:
    1. MyClass::MyClass(QWidget *parent)
    2. : QWidget(parent)
    3. {
    4. masterIAL = new IAL;
    5. myIAL[5] = new IAL;
    6.  
    7. connect(masterIAL, SIGNAL(mySignalOne(QString, int)),myMM, SLOT(handleSignal(QString, int)));
    8.  
    9. // this is where I'm having problems
    10. connect(myIAL, SIGNAL(value(int, int, ushort)), this, SIGNAL(sendValue(int, int, ushort)));
    11. }
    12. {
    To copy to clipboard, switch view to plain text mode 

    I tried other ways of connecting (e.g. myIAL[] ) to no luck.

    Any help appreciated.

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Problems connecting an array

    myIAL[0] = undefined
    myIAL[1] = undefined
    myIAL[2] = undefined
    myIAL[3] = undefined
    myIAL[4] = undefined
    myIAL[5] = new IAL

    You get the message?

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

    td (27th April 2010)

  4. #3
    Join Date
    Sep 2008
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8

    Default Re: Problems connecting an array

    Well, now I'm embarrassed!

    Thanks a lot.

Similar Threads

  1. declare an array of QSemaphore and array of slot functions
    By radeberger in forum Qt Programming
    Replies: 11
    Last Post: 2nd May 2010, 13:24
  2. Replies: 2
    Last Post: 15th April 2010, 14:59
  3. Problems passing an array of pointers to objects to a function
    By Valheru in forum General Programming
    Replies: 16
    Last Post: 30th June 2008, 00:11
  4. Connecting to MS ACCESS
    By berzeck in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2007, 21:30
  5. Problems connecting PushButtons
    By Randulf in forum Newbie
    Replies: 3
    Last Post: 23rd August 2006, 14:39

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.