I don't understand your question.
But here's an example of a signal and slot connection with parameters:
{
Q_OBJECT
signals:
void signalWithParameters
(const QString &text,
int number
);
};
{
Q_OBJECT
public slots:
void slotWithParameters
(const QString &text,
int number
);
};
...
A aObject;
B bObject;
connect(&aObject, SIGNAL(signalWithParameters(const QString&, int)), &bObject, SLOT(slotWithParameters(const QString&, int)));
Class A : public QObject
{
Q_OBJECT
signals:
void signalWithParameters(const QString &text, int number);
};
Class B: public QObject
{
Q_OBJECT
public slots:
void slotWithParameters(const QString &text, int number);
};
...
A aObject;
B bObject;
connect(&aObject, SIGNAL(signalWithParameters(const QString&, int)), &bObject, SLOT(slotWithParameters(const QString&, int)));
To copy to clipboard, switch view to plain text mode
Bookmarks