×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    31

    QSystemBatteryInfo::remainingCapacityPercentChanged signal isn't working

    Code:
    bi = new QSystemBatteryInfo(this);
    connect(bi,SIGNAL(remainingCapacityPercentChanged(int)),
    	 this,SLOT(updateStatus(int)));
    ...
    void test_app::updateStatus(int newValue)
        {
        qDebug() << QString("remainingCapacityPercentChanged %1").arg(newValue);
        }
    In result log is empty, but if I'm trying to check bi->remainingCapacityPercent() manually I saw that value changing time after time. But log is empty and updateStatus() never was called.

    Also the SDK help says that there is a signal named QSystemBatteryInfo::remainingCapacityChanged() but when I'm trying to connect to it I've receive a message
    [Qt Message] Object::connect: No such signal QSystemBatteryInfoPrivate::remainingCapacityChanged(int)
    Belle FP1, Qt 4.7.4, QtMobility 1.2

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: QSystemBatteryInfo::remainingCapacityPercentChanged signal isn't working

    Hi,

    There are some changes. Please check this link for the signals available and removed and other version compatibility issues

    You can check 'Changes in Qt Mobility’s QML bindings' in that.

    EDIT: signal seems to be present.
    Can you check this thread, where similar issue is reported. Workaround also given for now - to add WriteDeviceData cap,
    If this helps you by any chance.
    Last edited by kusumk; 2012-04-26 at 08:00.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    31

    Re: QSystemBatteryInfo::remainingCapacityPercentChanged signal isn't working

    Thanks for answer. I've read that article and that thread before posting question.
    Could you tell me where in article says exactly about remainingCapacityPercentChanged() signal?
    Also my project doesn't contains any QML code, so bindings doesn't relevant for my problem.

    My project already have WriteDeviceData capability, but it doesn't help.

Similar Threads

  1. Bluetooth connection working in emulator, but not working on Nokia E52
    By voroske.julia in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2011-05-30, 13:01
  2. Replies: 6
    Last Post: 2010-03-20, 14:06
  3. Replies: 2
    Last Post: 2006-03-11, 09:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×