Qt docu says I can get a popup for the user to choose the QNetworkConfiguration
. But how can I do this?
When I have
QNetworkConfiguration config;
QNetworkSession *networkSession = new QNetworkSession(config, &a);
networkSession->open();
how can I tell it I want the dialog. There is not setType
function or ctor. What do I miss? Or am I just on the wrong platform (Win64)?
UserChoice The configuration is a placeholder which will be resolved to an actual configuration by the platform when a session is opened. Depending on the platform the selection may generate a popup dialog asking the user for his preferred choice.
根据http://doc.qt.io/qt-5/bearer-management.html,仅QNetworkConfigurationManager :: defaultConfiguration()返回UserChoice类型的配置
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.