qdbus org.onboard.Onboard /org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.Show



  • I must reply these command using QtDBus:

    qdbus org.onboard.Onboard /org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.Show
    

    I try to use these voit witouth succes ... for shure because I have no experience with dbus ....

    void MainWindow::openKeyboard()
    {
    
           QDBusConnection::sessionBus().connect("org.onboard.Onboard", "/org/onboard/Onboard/Keyboard" ,"org.onboard.Onboard.Keyboard");
           QDBusMessage msg = QDBusMessage::createSignal("org.onboard.Onboard", "/org/onboard/Onboard/Keyboard" ,"org.onboard.Onboard.Keyboard.Show");
           QDBusConnection::sessionBus().send(msg);
    }
    

    I need some help or good totorial link to make these ... I not really understand qt example ....
    My first problem: org.onboard.Onboard is the service or the right service is: org.freedesktop.DBus.ObjectManager

    regards
    Giorgio



  • @gfxx link text

    this link explain better (in the middle of post list..) the situation and a Nice user attach a good example in qt4 ....

    regards
    Giorgio



  • @gfxx I have modified the old onboard_qt_4 into onbhoard_qt_5 vith some trivial modyfications .... it works ... but the method "Visible" is calling by other service and method ( org.freedesktop.DBus.Properties.Get ) ... so these part not work at all .... onboard service is an user service so is registered only after it exist ... so autorun works only aftere QProcess "onboard" call ...

    file.tar.gz on these forum

    regards
    Giorgio


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.