シグナルは、例えばボタン(QPushButton)が押された時にclickedという関数が呼ばれます。
これは、このページを参考にしました。

QPushButton * button = new QPushButton(tr("action"), this);
connect(button, SIGNAL(pressed()), this, SLOT(close()));
[[シグナルとスロットの仕組み>]]から

シグナルをシグナルに接続できる(シグナルフォーワーディング)

Q_OBJECT
が必ず必要
<-ビルド-qmakeの実行

connect(sender,signal,receiver,slot)
【example】
findButton = new QPushButton(tr("&Find"), this);
connect(findButton, &QAbstractButton::clicked, this, &Window::find);

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Menu

【メニュー編集】
  • 二分木

論文のとりまとめ

Scene

処理の流れ

  • Revert

Traverse

  • 取付方向角

クラス?

サリエンシー

Latex

PCL

Lastools

Grant

LGG

管理人/副管理人のみ編集できます