working connecting and entering password

This commit is contained in:
talksik
2024-02-09 12:50:06 -08:00
parent edefbf5b13
commit 13bf908ab9
6 changed files with 46 additions and 1 deletions
+5
View File
@@ -48,3 +48,8 @@ QHash<int, QByteArray> NetworksModel::roleNames() const
roles[NetworksModel::NetworkRoles::NameRole] = "name";
return roles;
}
void NetworksModel::connectToNetwork(const QString &ssid, const QString &password)
{
bool success = this->m_networkmanager.connect(ssid.toStdString(), password.toStdString());
}