gpt4 book ai didi

c++ - 如何获取 QNetworkConfiguration UserChoice 对话框?

转载 作者:行者123 更新时间:2023-11-28 04:33:44 24 4
gpt4 key购买 nike

Qt 文档说我可以获得一个弹出窗口供用户选择 QNetworkConfiguration。但是我该怎么做呢?

当我有

QNetworkConfiguration config;
QNetworkSession *networkSession = new QNetworkSession(config, &a);
networkSession->open();

我如何告诉它我想要对话框。没有 setType 函数或构造函数。我想念什么?或者我只是在错误的平台 (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 类型的配置

关于c++ - 如何获取 QNetworkConfiguration UserChoice 对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52131301/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com