qtdbus

    0熱度

    1回答

    我想使用PyQt4.QtDBus對遠程D-Bus服務中的函數進行非阻塞調用。根據Qt的C++文檔,我想出了以下測試程序: from PyQt4 import QtCore, QtDBus class DeviceInterface(QtDBus.QDBusAbstractInterface): def __init__(self, service, path, connection

    1熱度

    1回答

    我在Windows上用WinDBus構建了Qt。 Qt的本身建行,但QDbus例子建立失敗消息 moc_car_adaptor_p.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QDBusAbstractAdaptor::staticMetaObject" ([

    2熱度

    1回答

    我試圖將UDisks2與Qt應用程序接口,並讀取自定義屬性使程序崩潰。 對於SMART屬性,一切都OK了(包括custom properties),但是當我嘗試讀取RAID設備的屬性ActiveDevices我收到了Qt的致命錯誤和應用程序崩潰 下面是一個測試程序,它說明行爲: #include <QApplication> #include <QDBusMetaType> #include

    0熱度

    1回答

    我們的框架最近從Qt4升級到Qt5。 但是,我們在d-bus事件處理中遇到了一些問題。 原始碼QDBusConnection::sender().name()返回空字符串。官方建議替代方式QDBusContext::connection()返回類似「1.40」,「1.101」(應該是地址或其他內容,並且是正確的)。 我們也嘗試使用msg.service(),其中味精是QDBusMessage,但仍

    1熱度

    1回答

    $ qdbusxml2cpp -v -c CustomIf -p customif.h:customif.cpp org.item.custom.xml org.item.custom.xml <node> <interface name="org.pace.custom"> <method name="Send_Custom_Msg"> <arg name="msg" type="a(ii

    0熱度

    1回答

    我在Linux上用C++開發應用程序,它與藍牙設備(如藍牙套接字或揚聲器)交互。 我用d總線命令來獲得配對的設備列表: dbus-send --system --dest=org.bluez --print-reply $BTADAPTER org.bluez.Adapter.ListDevices 它返回: method return sender=:1.0 -> dest=:1.90 repl

    1熱度

    1回答

    我嘗試從源代碼編譯Qt,除了dbus部分外,一切正常(或多或少)。 ./configure -v -opensource -dbus-linked -arch i386 配置顯示了這個錯誤: 1 error generated. make: * [dbus.o] Error 1 D-Bus disabled. The QtDBus module cannot be enabled because

    2熱度

    1回答

    我正在使用qt-dbus從我的軟件中公開一些API。 我將接口聲明foo.xml轉換爲foo_adaptor.cpp和foo_adaptor.h通過qdbusxml2cpp持有FooAdaptor類,然後通過在Foo的構造函數中調用新的FooAdaptor(this)將真正的Foo類綁定到FooAdaptor。 所以,它的工作原理:當我通過dbus-send發送消息給我的應用程序時,Foo met

    4熱度

    1回答

    我正在嘗試使用Qt的QDBus 類庫調用WPA懇求者的DBus接口。特別是,我試圖使用「Get」屬性 調用來檢索「Interfaces」屬性值。 的的DBus規範(通過內省) 「獲取」 是: <interface name="org.freedesktop.DBus.Properties"> <method name="Get"> <arg name="interface"

    2熱度

    1回答

    我正在嘗試使用QDBusPendingCallWatcher來觀看異步呼叫。一些示例代碼是這樣的: { // interface = new QDBusInterface(...); QDBusPendingCall pcall = interface->asyncCall("query"); QDBusPendingCallWatcher *watcher = ne