Video surveillance platform client development record

renderings

Core technologies used

  1. QT signal and slot mechanism;
  2. layouter;
  3. QStylesheet;
  4. QStackedWidget;
  5. QTreeView;
  6. QTableView;
  7. QNetworkAccessManager;
  8. Tr();

QT signal and slot mechanism

The signal and slot mechanism is the essence of QT, which mainly solves the relationship between events and event responses in the UI interface. QT defines interface operations (such as clicking buttons, dragging windows, etc.) as signals. When the user performs an operation in the UI interface, the system needs to respond to the user's operation. This response process is generally completed by slot functions.

Signals and slot functions need to be bound. Once a signal is triggered after binding, the system will automatically call the corresponding slot function to respond. Binding is usually done by calling the connect() function:

connect(ui->sixCanvasBtn, SIGNAL(clicked()), this, SLOT(slotSixCanvas()));

superior

おすすめ

転載: blog.csdn.net/heibao111728/article/details/132488214