Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DBus signal connection problem

DBus signal connection problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abellia
    wrote on last edited by
    #1

    Hi,

    I upgraded from Ubuntu 9..04 to 11.10 and the following code started throwing an error:
    @
    m_hal_manager_p = new QDBusInterface( Hal::SERVICE, Hal::MANAGER_PATH,
    Hal::MANAGER_IFACE, QDBusConnection::systemBus(), this );

    (void)connect( m_hal_manager_p, SIGNAL( DeviceAdded( QString ) ),
        this, SLOT( OnDeviceAdded( QString ) ) );
    

    @
    Error:
    @
    Warning: Object::connect: No such signal QDBusAbstractInterface::DeviceAdded( QString ) in ../../../Components/Qt/4/ExternalStorage/VolumeManager.cpp:43
    @
    Any ideas what I might not have installed or configured properly to cause this?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Please "code wrappings":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 for your code. I have introduced them for you.

      As the warning suggests the "signal is not defined. ":https://qt-project.org/doc/qt-4.8/qdbusinterface-members.html

      Did you also upgrade from Qt3 to Qt4?
      I doubt that in an earlier Qt4 version this signal was available.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved