黑莓 10 中的弹出窗口
Popup in BlackBerry 10
如何在黑莓 10 中显示弹出窗口?我想在添加/删除/更新任何联系人时显示弹出窗口。 我采取了这样的一种方法---
void ContactEditor::showToast(QString text) {
bb::system::SystemToast toast;
toast.setBody(text);
toast.setPosition(bb::system::SystemUiPosition::MiddleCenter);
toast.exec();
}
并这样称呼---
showToast("contact added...");
还包括系统吐司的文件。
但这给了我错误----
make[2]: *** [o-g/addressbook] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2
有人可以告诉我有什么问题吗?
将LIBS += -lbbsystem
添加到您的应用程序专业文件中。
#include <bb/system/SystemToast>
SystemToast *toast = new SystemToast(this);
toast->setBody("Your Toast");
toast->setPosition(SystemUiPosition::MiddleCenter);
toast->show();
相关文章:
- 拦截黑莓电话
- 在黑莓 10 级联 Beta 4 SDK 中显示带有给定号码的拨号盘
- 只有当你在QML中点击黑莓级联模拟器时,你如何回应点击文本字段
- 如何让Qt在黑莓剧本上工作
- 黑莓模拟器上的级联相机错误:取景器启动失败
- 你会选择什么平台进行黑莓开发
- 从插槽黑莓 10 获取 TextField->text()
- 黑莓 10 SDK 测试版 2 中的列表视图滚动问题
- 黑莓级联中的网络连接检查 10.
- 如何在黑莓10中将日期格式转换为字符串
- 黑莓原生 SDK 10.0 中的 QML
- 天真地将Android代码移植到黑莓
- 黑莓 10 应用程序中的验证
- 在黑莓10应用程序中获取活动导航页面
- 将我的应用程序与黑莓10中的呼叫日志核心应用程序集成
- 黑莓 10 中的分段控件
- 黑莓 10 数据库持久存储
- 结合标题和网格列表布局 黑莓 qnx momentics IDE
- 黑莓 10 中的数据库
- 黑莓 10 中的弹出窗口