Questions tagged «application-development»

为Ubuntu(包括Ubuntu Touch)编写应用程序,以及有关向Ubuntu Software Center提交应用程序的问题。这涵盖了开源和商业应用程序。




1
Qt Quick Controls在Ubuntu 13.10上可用吗?
我一直想在QML中进行UI开发,我真的希望它看起来很自然。我找到了QtQuick.Controls(http://qt-project.org/doc/qt-5.1/qtquickcontrols/qtquickcontrols-index.html),但是当我尝试制作一个简单的应用程序时,它告诉我QtQuick.Controls不是t已安装。 main.qml: import QtQuick 2.1 import QtQuick.Controls 1.0 Rectangle { height: 200 width: 200 } 终奌站: $ qmlscene main.qml file:///tmp/main.qml:2 module "QtQuick.Controls" is not installed 另外,我从网上下载源https://qt.gitorious.org/qt/qtquickcontrols/source/stable,跑qmake && make,但这返回以下的输出: cd src/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /tmp/qtquickcontrols/src/src.pro -o Makefile ) && make -f Makefile make[1]: Går til katalog '/tmp/qtquickcontrols/src' …

1
为什么Ubuntu App Developer网站未显示有关桌面开发的内容?
看起来他们删除了与桌面开发无关的所有内容。例如,当您单击“入门”选项卡时,只有关于Ubuntu Touch及其SDK的信息,当您单击“资源”选项卡然后在“编程语言”上时,您只会看到C ++,JavaScript和QML(没有Python, Java,Mono等)。您也找不到有关“快速”的任何信息,请尝试单击网站底部“资源”中的“快速”,您将看到“找不到页面”错误。 该网站是否正在维护中?


1
相当于Android Intent和BroadcastReceiver?
我玩过Android并编写了代码,并了解了Android中Intent和BroadcastReceivers的概念。它们用于呼叫Apps的特定目的,例如拨打电话或播放音乐或要求启用蓝牙。应用可以注册这些Intent,这些Intent通常会被“广播”,然后可以处理它们。 与Ubuntu(freedesktop,无论如何)平台上的等效提议是什么?特别是在电话应用程序的上下文中,在桌面应用程序中也是如此。 首先,我会想到URI模式处理程序,并且无疑会想到一些DBus构造。



2
编写没有图标的应用程序指示器
我写了一个应用程序指示器,显示有关我每月网络使用情况的信息。我不希望在我显示的文本旁边有一个图标。如何编写没有图标的应用程序指示器? 我用来初始化指标的代码是: self.indicator = appindicator.Indicator.new("VooMeter", "network", appindicator.IndicatorCategory.SYSTEM_SERVICES) 阅读文档时,我找不到要代替“网络”放置的值




1
为什么python3无法导入gi.repository?
Python2不会遇到相同的问题。 greg@greg-precise:~$ python3 Python 3.2.3 (default, May 3 2012, 15:51:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gi.repository (为清楚起见添加了换行符)

2
如何使用Qt / C ++创建工作指标?
我正在使用Qt IDE来构建我的应用程序,以便参加Ubuntu Showdown竞赛。在我的应用程序中,我完成了以下操作: void show_app(MainWindow *data) { //this works fine: app_indicator_set_status(appindicator, APP_INDICATOR_STATUS_PASSIVE); //this crashes the application: data->show(); } void MainWindow::make_indicator() { if(appindicator){ //appindicator has already been created return; } appindicator = app_indicator_new("Format Junkie Indicator", "formatjunkie", APP_INDICATOR_CATEGORY_APPLICATION_STATUS); GtkWidget* showapp_option; GtkWidget* indicatormenu = gtk_menu_new(); GtkWidget* item = gtk_menu_item_new_with_label("Format Junkie main menu"); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.