#5 can't connect to signal in base class

closed-accepted
None
6
2002-09-26
2002-09-25
Andrew Snyder
No

I get 'No such signal' whn I try to connect a derived
class from another class. I suspect this might be
caused by the default resolution to be static

-- error message
QObject::connect: No such signal
MTG::Deck::refresh_card(const char*)
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'unnamed')

-- context
# here Card is used to display the most recently
selected card in either a collection or a deck

card = Card(this);
$left->addWidget(card);

collect = Collection(this, 'ajs.col', this, $sort_key);
$left->addWidget(collect);
Qt::Object::connect(collect, SIGNAL "refresh_card(const
char*)",
this, SLOT "update_card(const char*)");

# Deck ISA Collection
deck = Deck(this, 'ajs.dec', this, $sort_key, collect);
$right->addWidget(deck);

Qt::Object::connect(deck, SIGNAL "refresh_card(const
char*)",
this, SLOT "update_card(const char*)");

Discussion

  • germain garand
    germain garand
    2002-09-25

    • priority: 5 --> 6
    • assigned_to: nobody --> germaingarand
    • status: open --> open-accepted
     
  • germain garand
    germain garand
    2002-09-25

    Logged In: YES
    user_id=145773

    > I get 'No such signal' whn I try to connect a derived
    >class from another class. I suspect this might be
    >caused by the default resolution to be static

    no, its just that I thought signals didn't need to be
    propagated... but I didn't reckon with their MetaObject
    counterpart.

     
  • germain garand
    germain garand
    2002-09-25

    Logged In: YES
    user_id=145773

    Should be fixed now... (Qt.pm)
    please confirm

     
  • germain garand
    germain garand
    2002-09-25

    Logged In: YES
    user_id=145773

    Should be fixed now... (Qt.pm)
    please confirm

     
  • Andrew Snyder
    Andrew Snyder
    2002-09-26

    Logged In: YES
    user_id=616803

    looks good

     
  • Andrew Snyder
    Andrew Snyder
    2002-09-26

    • status: open-accepted --> closed-accepted