各位大哥,请问发 SMS 要证书吗?如果不用那我想按 PushButton 就可以发送 SMS 应该怎样写呢?可不可以写一个简单的给我看看,谢谢你们的帮忙。
我刚刚建立了一个工程,请各位大哥帮我在下面的代码里添加发 SMS 的代码。
如下:
MainWindow::MainWindow(QWidget *parent) :[pre] QMainWindow(parent),[/pre][pre] ui(new Ui::MainWindow)[/pre][pre]{[/pre][pre] ui->setupUi(this);
QString text = "i want send sms"; //短信内容
QString number = "123456789"; //发去这个手机号码
[/pre][pre]}[/pre]
void MainWindow::on_blStatus_clicked() //按 PushButton 的时候[pre]{[/pre][pre] //发送 SMS[/pre][pre]}[/pre][pre]
[/pre]