我怀疑这是非常基本的,没有人愿意记录它。
我想从我的程序中编写一个 HTML 文件,然后将该文件加载到 QWebview 对象中。
当我打开 QtCreator 时,我可以导航到右侧 URL 块中的文件,它会显示在 QtCreator 中。当我编译并运行程序时,窗口是白色和空白的。
我也不希望目录硬编码,我希望它使用当前目录。
所以我想有两个问题:
- 怎么写???在下面获取名为“reportView”的QWebview对象来显示我的本地文件?
ui->reportView->load(QUrl("???"));
- 为什么 QWebview 对象保持空白?我怀疑连接到 Google Docs 时出现问题,因为我收到此错误:
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
谢谢你。