[Qt-interest] signal and slot

alexander golks alex at golks.de
Tue Mar 2 11:03:13 CET 2010


perhaps something like: 

  connect(this, SIGNAL( signal1() ) ), b, SLOT( slot1() ) ,Qt::BlockingQueuedConnection);
or
  connect(this, SIGNAL( signal2() ) ), b, SLOT( slot2() ) ,Qt::DirectConnection);

may serve.

btw:
why don't you call b->slot1() directly, without emmiting the signal?
or you may want to try to call slot2() in slot1(), like:
  void slot1()
  {
    //read database;
    slot2();
  }

alex
-- 
/*
 *  printk(KERN_ERR "happy meal: Fry guys.");
 *          linux-2.6.6/drivers/net/sunhme.c
 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100302/e42f32c6/attachment.bin 


More information about the Qt-interest-old mailing list