QML Qt openUrlExternal [英] QML Qt openUrlExternally

查看:814
本文介绍了QML Qt openUrlExternal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在使用此代码时发现了奇怪的行为。

I've just discovered strange behavior when using this code

Qt.openUrlExternally(someurl); 

我想让我的用户打开facebook sharer url,
,但我不能使用

I would like to let my users open facebook sharer url, but I cannot use this code, as it does nothing.

在S60 5和Symbian ^ 3设备(C5,C7,5230,N8)上测试

Tested on S60 5th and Symbian^3 devices (C5, C7, 5230, N8)

所以请告诉我(如果你知道)

1)有关于这个组件/行为的BUG吗?(我搜索,没有发现任何东西)

2)我如何使C ++组件做同样的事情?(如果是解决方案)

So please tell me (if you know)
1) Is there any BUG about this component/behavior ? (I searched and didn't found anything)
2) How can i make C++ component to do the same thing ?` (If it is solution)

感谢

编辑

我在这里找到了使用QML可访问的方法创建C ++组件的示例: http://doc.qt.nokia.com/4.7-snapshot/ declarative-cppextensions-referenceexamples-methods.html

最终编辑

讨论导致了错误报告,可以在以下网址找到: http:// bugreports。 qt-project.org/browse/QTBUG-19201

Discussion led to making a bug report, could be found on : http://bugreports.qt-project.org/browse/QTBUG-19201

感谢大家

推荐答案

Qt.openUrlExternally(http://www.stackoverflow.com/); 为我打开本机浏览器。

Qt.openUrlExternally("http://www.stackoverflow.com/"); opens the native browser for me.

我发现的唯一问题是,如果浏览器已经在手机上运行(在后台),它不会被带到前台,因此看起来像它没有效果。

The only problem I have found with it is, if the browser is already running on the handset (in the background), it will not be brought in to the foreground, and therefore looks as though it has had no effect.

这篇关于QML Qt openUrlExternal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆