Lambda表达式的学习

结合信号和槽(进行使用): 

    auto function=[=](QString a){
            qDebug()<lineEdit,&QLineEdit::textChanged,this,function);
#include "form.h"
#include "ui_form.h"
#include 
#include 
#include 
Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);

    auto function=[=](QString a){
            qDebug()<lineEdit,&QLineEdit::textChanged,this,function);
}

Form::~Form()
{
    delete ui;
}

你可能感兴趣的:(学习,qt,开发语言)