No such signal... reviewImageReady (const QSize & imgSize, const QByteArray & imgData)

Hello

I have 2 questions:

(Q1), what is the right way to implement the slot for the 'reviewImageReady' of the camera signal?

Q2) after examination of the image, can the code prevents the image to be saved in the shared folder?

For Q1, I get the following error log in my Console:

Object::connect: No such signal bb::cascades::multimedia::QmlCamera::reviewImageReady(const QSize &imgSize, const QByteArray &imgData) in ../src/applicationui.cpp:125
Object::connect:  (sender name:   'myCameraObj')

In my applicationui.cpp I connect the signal and slot like this

    connectResult = connect(cameraObj,
            SIGNAL(reviewImageReady(const QSize &imgSize, const QByteArray &imgData)),
            this,
            SLOT(onReviewImageReady(const QSize &imgSize, const QByteArray &imgData))
            );

and my onReviewImageReady slot looks like this

Header:

public slots:
  void onReviewImageReady(const QSize &imgSize, const QByteArray &imgData);

Source file:

void ApplicationUI::onReviewImageReady(const QSize &imgSize, const QByteArray &imgData)
{
    Q_UNUSED(imgData);
    Q_UNUSED(imgSize);
}//end onReviewImageReady

Take off the SIGNAL() and SLOT() args arguments names. In other words, delete "imgSize" and 'imgData' and just keep to the types of arguments.

Tags: BlackBerry Developers

Similar Questions

  • NO such signal

    I get this error.

    Object::connect: No such signal bb::multimedia::MediaKeyWatcher::shortPress(MediaKey::VolumeUp) in ../src/EventsCall.cpp:17
    

    And my code is

    #include "EventsCall.hpp"
    #include 
    #include 
    
    using namespace bb::multimedia;
    
    EventsCall::EventsCall() {
        MediaKeyWatcher keyUp (MediaKey::VolumeUp);
        connect(&keyUp, SIGNAL(shortPress(MediaKey::VolumeUp)), this, SLOT(slotToFireOnVolumeUp()));
        connect(&keyUp, SIGNAL(longPress(MediaKey::VolumeUp)), this, SLOT(slotToFireOnVolumeUp()));
        MediaKeyWatcher keyDown (MediaKey::VolumeDown);
        connect(&keyDown, SIGNAL(shortPress(MediaKey::VolumeDown)), this,                    SLOT(slotToFireOnVolumeDown()));
        connect(&keyDown, SIGNAL(longPress(MediaKey::VolumeDown)), this,                    SLOT(slotToFireOnVolumeDown()));
    }
    

    Anythind is false in the coding?

    Have you tried the argument of qualification?

    i.e. QObject::connect (& keyWatcher, SIGNAL (shortPress (bb::multimedia::MediaKey::Type))

  • There is no such thing as PushService createChannelCompleted signal

    Dear BlackBerry developers

    I am building an active push application. So I started with the PushService class to create a session and a channel and other things. Because I need the token server gives to my application, I need to connect with the createChannelCompleted (const bb::network:ushStatus status, const QString & token) signal. This signal is copy pasted from the documentation on here http://developer.blackberry.com/cascades/reference/bb__network__pushservice.html.

    But I always get the following error message

    Object::connect: No such signal PushManager::createChannelCompleted

    I tried all the ways to connect with the signal

    connect(pushService, SIGNAL(createChannelCompleted(const bb::network::PushStatus&, const QString&)), this, SIGNAL(createChannelCompleted(const PushStatus&, const QString&)));
    

    But I can't get it right, apparently.

    Thanks in advance!

    Hello

    This should work:

    QObject::connect(service, SIGNAL(createChannelCompleted(bb::network::PushStatus,QString)),
                         this, SLOT(onCreateChannelCompleted(bb::network::PushStatus,QString)));
    

    Statement of slot: / / upd: fixed a statement of slot

    void onCreateChannelCompleted(const bb::network::PushStatus &status, const QString &token);
    

    Your statement should probably also work if you replace second SIGNAL() SLOT() and use a full PushStatus in the slot. But for const const reference and & can be left inside the SIGNAL() and SLOT() statements. MOC will remove them automatically anyway.

  • Problem, the signals and Slots

    Hi, as I posted in one of my other posts I have following problem with signals and messages and would be nice if someone could clarify anything that I don't seem to be able to find what the problem of the outputs.

    I have the code:

    void MYNetworkClass::requestFinished(QNetworkReply* reply)
    {
    
          // Check the network reply for errors
          if (reply->error() == QNetworkReply::NoError)
          {
             // read response
             const QByteArray response(reply->readAll());
             qDebug() <<"Response: "<< response;
    
             JsonDataAccess jda;
             QVariantMap results = jda.loadFromBuffer(response).toMap();
    
             QVariantMap data = results.value("SomeData").toMap();
    
             emit signalSuccess(data); // I reach here .... 
    
    // however actually when I click "Step Over" in debug mode, and try to exit the function// afterwards I get such "error" saying: No source available for "QMetaObject::activate() at  0xb9668da7" - highlighted in red.
    
         }
         else
         {
             qDebug() << "\n Problem with the network";
             qDebug() << "\n" << reply->errorString();
         }
    

    In MyNetwork class I also added the definition of signal in the header file:

    signals:
    
        void signalSuccess(QVariantMap result);
    

    Now also when someone calls an object MyNetworkClass method which calls requestFinished,.

    I want to catch the signal which is emitted by the requestFinished - as shown above.

         MyNetworkClass *network = new MyNetworkClass();
    
        QMap params;
        params.insert("username", userEmail);
    
        bool res = QObject::connect(network, SIGNAL(signalSuccess(QVariantMap)), this, SLOT(SomeSlotForSignal(QVariantMap)));
    
            Q_ASSERT(res);
        Q_UNUSED(res);
            network->makePostRequest("Login");
    

    My problem is that the SomeSlotForSignal slot never is called... (even if the signal is issued constitute requestFinished method and as I stated SomeSlotForSignal as a crack in the header file...) What can be problem? Any help? Thank you.

    I guess I solved the problem.

    The code I presented previously registered function

    F of a class B:

     void B::f()
    {
    MyNetworkClass *network = new MyNetworkClass();
    
        QMap params;
        params.insert("username", userEmail);
    
        bool res = QObject::connect(network, SIGNAL(signalSuccess(QVariantMap)), this, SLOT(SomeSlotForSignal(QVariantMap)));
    
            Q_ASSERT(res);
        Q_UNUSED(res);
    
    network->makePostRequest("Login");
    }
    

    Then the function f is called to:

        B object;
        object.f();
    
    The problem was I think that when the server responded "object" was destroyed from the stack. When I replaced the above code, with 
    
         B* object = new B();
        object->f();
    
    I think it works now......
    
  • emitting signals with QList as parameter?

    Hey developers

    How can I pass a QList as an argument with a signal? He repeats to me

    "No such signal ConnectionService::downloadCompleted (QList, QString) '.

    I'm emitting the signal with a QList object and a QString. It's my signal

    void downloadCompleted(const QList &connections, const QString &error);
    

    And that's how I connect

    connect(&this->connectionService, SIGNAL(downloadCompleted(QList, QString)), this, SLOT(searchCompleted(QList, QString)));
    

    I have allso tried QList SIGNAL signature. But that no longer works.

    Thanks in advance.

    Spend a full type, i.e.

    Connect (& connectionService, SIGNAL (downloadCompleted (const QList&, const QString &)), this, SLOT (searchCompleted (const QList&, const QString &)));)))

    'const' and '&' can be omitted if it should also work:

    Connect (& connectionService, SIGNAL (downloadCompleted (QList, QString)), this, SLOT (searchCompleted (QList QString,)));

    UPD:

    Try saving the type:

    qRegisterMetaType< QList >("QList");
    
  • No bb::system:phone:Phone:callUpdated error signal

    I work on a project, use the phone object. It shows error when I connect the signal to a slot.

    bb::system::phone::Phone *ph = new bb::system::phone::Phone(this);
        bool success = connect(ph, SIGNAL(callUpdated(bb::system::phone::Call&)), this, SLOT(onCallUpdated(bb::system::phone::Call&)));
    

    It says: "Object::connect."
    "No such signal bb::system:: callUpdated (bb::system:: call &).

    Someone knows how to fix this?

    Please help me. Thank you

    Declare the slot as:

    void onCallUpdated(const bb::system::phone::Call &call);
    

    const is missing.

  • There is no ContactPicker Signal for several ContactSelectionMode

    When I try to connect the signal "contactsSelected" of the ContactPicker to my own slot, I get:

    "Object::connect: no such signal bb::cascades:ickers::ContactPicker:contactsSelected(QList_ _&).

    QObject::connect(_contactPicker,
               SIGNAL(contactsSelected(QList &)),
               this,
               SLOT(onContactsSelected(QList &)));
    

    However, when I change the ContactPicker ContactSelectionMode "Single" and connect the signal "contactSelected" to my crack, it works very well (Contact is not the plural in this signal).

    It's the reference I used:

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__pickers__contactpicker.html#functio...

    Is it possible that the documentation for the signal name is incorrect?

    Hello

    Try declaring the slot as

        void onContactsSelected(const QList &contactIds);
    

    Change the connection to:

       QObject::connect(_contactPicker, SIGNAL(contactsSelected(QList)),
                         this, SLOT(onContactsSelected(QList)));
    
  • Drop-down list of signal problem?

    DropDown *currency_dropdown = mSettings->findChild("dropdown_currency"); Q_ASSERT(currency_dropdown); bool ss = connect(currency_dropdown,SIGNAL(selectedValueChanged(const QVariant& selectedValue)), this, SLOT(onSettingsCurrencyChanged(const QVariant& selectedValue))); Q_ASSERT(ss);
    

    I'm on 10.1.0.1020

    When demand lanuch I

    Object::connect: No such signal bb::cascades::DropDown::selectedValueChanged(const QVariant& selectedValue) in ../src/applicationui.cpp:276
    

    is there a any error on my code?

    Thank you

    bool ss = QObject::connect(currency_dropdown, SIGNAL(selectedValueChanged(QVariant)), this,
     SLOT(onSettingsCurrencyChanged(QVariant)));
    

    This one should work.

    Do not specify a parameter names in SIGNAL() and SLOT(). Const and & can also be omitted when used together, MOC will reject them anyway. But it should work with them also.

  • Signal connect problem

    Hi all

    I have a problem strange connection of signals to the slot machines. I have the following code:

    Container container = root->findChild ("timeline_container");
    m_pForeignWindow = (ForeignWindowControl *) (container-> at (0));

    m_pForeingWindow is not null here

    Boolean success = connect (m_pForeignWindow,
    SIGNAL (windowAttached (screen_window_t, const QString &, const QString &)),.
    This,
    SLOT (onWindowAttached (screen_window_t, const QString &, const QString &)));))

    success is true here

    success = QObject::connect (m_pForeignWindow,
    SIGNAL (touch(TouchEvent *)),
    m_timeline,
    CRACK (onTouch(TouchEvent *)));

    success is false here

    Research with the debugger, I got the following message:

    Object::connect: No such signal bb::cascades:ForeignWindowControl:touch(TouchEvent_*)

    but this signal exists for all objects in VisualNode... What I am doing wrong?

    Kind regards.

    See if it actually compiles.  FDI in the current beta version is infamous for being reported wrong these errors, so I suggest to turn them off.

    Window-> Preferences-> C / C++-> the analysis of Code-> Qt syntax problem

  • Unable to connect to the signal response AsyncDataAccess

    Hello.

    I am quite new to OS10 and QML and cannot understand why cannot connect to this particular signal. The code is as follows:

            m_async_access = new AsyncDataAccess(m_provider);
    
            bool res = connect(m_async_access,
                    SIGNAL(reply(const DataAccessReply&)),
                    this,
                    SLOT(onReply(const DataAccessReply&)));
    

    classy, solt is defined within the resembles

        class FSListDataModel: public ArrayDataModel
        {
            Q_OBJECT
    
            IProvider *m_provider;
            AsyncDataAccess *m_async_access;
        public:
            FSListDataModel(IProvider *provider, QString rootPath);
            virtual ~FSListDataModel();
    
            // @override ArrayDataModel item type
            virtual QString itemType(const QVariantList &indexPath);
    
    public slots:
            // onReply
            void onReply(const DataAccessReply &replyData);
    
        };
    

    What bothers me even more is that no message is printed to the console, while I read on the Internet, it must.

    Thanks for any help!

    Welcome on the support forums.

    one idea would be to check if you use namespace bb::data, otherwise you would have to add to all occurrences, as written in the API:
    cancel response (const bb::data :ataAccessReply & replyData)

  • ListView triggered signal

    Hello

    I created a ListItemListener & ListItemProvider - class.

    Everything works very well to show in a listview.

    On a new page, I created a signal connect to triggered(), but this signal seems to be issued.

    I followed the instructions from cascadescookbook to create the custom listview.

    When I put the DataModel for a new QListDataModel: HistListView-> setDataModel (new QListDataModel(hist-> getHistList())); the triggered signal works

    ListView * {IMUI::createHistListView()}
    QList histList = hist-> getHistList();
    ListView * histListView = new ListView;
    HistListFactory * histListManager = new HistListFactory();

    QVariantMap histMap = QVariantMap();

    for (int i = 0; i)< histlist.size();="" i++)="">
    histMap ["title"] = histList.value (i);
    mHistModel<>
    }

    histListView-> setDataModel (& mHistModel);
    histListView-> setListItemProvider (histListManager);

    Connect (histListView, SIGNAL (triggered (const QVariantList)), this, SLOT (onTriggered (const QVariantList)));

    Return histListView;
    }

    void IMUI:{nTriggered (QVariantList row)
    ResultMap = mHistModel.data (row) .toMap () QVariantMap;
    navRoot-> pop();
    SystemToast * test = new SystemToast();
    test-> setBody("");
    test-> show();
    }

    Thank you

    Ralph

    Hello

    Problem solved.

    I wrote a small "o" in "onTriggered" method method .cpp one a big "O" of all.

    Thank you

    Ralph

  • How to get the callUpdated signal and respond to the function of oncallUpdated slot?

    Hello world:

    I want to get the 'phone. callUpdated (const bb::system:: call & appeal) "signal and do something in the slot to onCallUpdated function, but the problem is crack onCallUpdated() function does NOT respond!

    Here is my code:

    . CPP

    #include 
    

    MyApp (bb::cascades:Application * app) in myApp.cpp

        bb::system::phone::Phone phone;
    
        bool success = QObject::connect(&phone,SIGNAL(callUpdated(const bb::system::phone::Call&)),this,SLOT(onCallUpdated(const bb::system::phone::Call&)));
    
        qDebug()<<"bb::system::phone::Phone phone:  "<
    

    When the application runs, the success of back connect is true!

    void Quicker::onCallUpdated(const bb::system::phone::Call &call)
    {
    
        //CallState::Type state = call.callState();
    
        qDebug()<<"onCallUpdated is called";
    }
    

    In myApp.hpp

    #include 
    
         void onCallUpdated(const bb::system::phone::Call &call);
    

    In the bar - descriptor.xml

        run_when_backgrounded
        access_phone
    

    I found the problem:

    bb::system::phone::Phone phone;
    

    the code must be in the *.hpp.

    Thank you all.

  • Problems with GPS signal/slot

    Hello

    I try to get GPS information for my application. I did a class to do so.

    #ifndef GPSHANDLER_H_
    #define GPSHANDLER_H_
    
    #include 
    
    #include 
    
    #include 
    #include 
    #include 
    
    using namespace QtMobilitySubset;
    
    class GPShandler : public QObject{
        Q_OBJECT
    public:
        GPShandler(QObject* parent);
        virtual ~GPShandler();
    private Q_SLOTS:
        void positionUpdatedSlot(const QGeoPositionInfo &geoInfo);
    
    public:
        void start();
    
        void stop();
    
        double Latitude();
    
        double Longitude();
    
    private:
        double mGeoInfoLat;
        double mGeoInfoLong;
        QGeoPositionInfoSource *mGeo;
    };
    #endif /* GPSHANDLER_H_ */
    
    #include "GPShandler.h"
    
    GPShandler::GPShandler(QObject* parent)
    : QObject(parent) {
        mGeoInfoLat = 0;
        mGeoInfoLong = 0;
        mGeo = QGeoPositionInfoSource::createDefaultSource(this);
        if (mGeo) {
            bool checkval = connect(mGeo, SIGNAL(positionUpdated(const QGeoPositionInfo &)), this,
                    SLOT(positionUpdatedSlot(const QGeoPositionInfo &)));
    
            mGeo->setPreferredPositioningMethods(QGeoPositionInfoSource::SatellitePositioningMethods);
            mGeo->setUpdateInterval(1000);
    
            //checkval = mGeo->setProperty("backgroundMode", true);
            //int i = 3;
        }
    }
    
    GPShandler::~GPShandler() {
        // TODO Auto-generated destructor stub
    }
    
    void GPShandler::positionUpdatedSlot(const QGeoPositionInfo &geoInfo) {
        // Here's where you can do something with the device's position
        mGeoInfoLat = geoInfo.coordinate().latitude();
        mGeoInfoLong = geoInfo.coordinate().longitude();
    }
    
    void GPShandler::start()
    {
        mGeo->startUpdates();
    }
    
    void GPShandler::stop()
    {
        mGeo->stopUpdates();
    }
    
    double GPShandler::Latitude()
    {
        return mGeoInfoLat;
    }
    
    double GPShandler::Longitude()
    {
        return mGeoInfoLong;
    }
    

    As you can see I have connected the signal postionUpdate() of QGeo class that I use for the positionUpdatedSlot() of the slot. I use the class as follows:

    Pop = new GPShandler (this);

    void::startTimer() {} App

    Pop-> start();

    }
    void::stopTimer() {} App

    Pop-> stop();

    }

    which are called when a key is pressed. However, the positionUpdatedSlot() of slot function is never called. I have debugged in my code and cannot find the problem. I can confirm the work of connection (function returns true), and that presented startup and shutdown functions are called as expected. Is there a reason why my slot machine function is not called?

    Note: I have another implementation of signal/slot in this app:

    Connect (mTimer, SIGNAL (timeout ()), this, SLOT (update ()));

    and it works very well.

    Thank you

    Gerry

    I do not know which of the following has solved my problem, but in any case, it's working now after doing these things:

    1. give permission to app to device identification information. (I had already given GPS, but examples also being device identifying information I thought I'd try that)

    2. remove the line:

           mGeo>setPreferredPositioningMethods(QGeoPositionInfoSource::SatellitePositioningMethods);
    

    as an example, I created using this example: http://blackberry.github.com/Cascades-Samples/geo-locationdiagnostics.html did not have this line

  • 500-100 wireless signal keeps dropping out.

    I just bought a brand new office of 500-100 a HP to replace my self built the aging of the desktop machine. The problem I have is that the signal wireless guard stall at random times, could be 3 times in 5 minutes, could be once in 30 minutes. My router is a Wirelss 5953 method.

    I've never had problems in the past with signal dropped, my phone and pad remain connected and the old pc used to be ok. Is that because I bought this machine that things started to go wrong.

    The intensity of such signal indicated by the bar remains at 4 all the time, then no reason (well, I guess that there must be a reason ) a little yellow exclamation point appears above him the connection limited to words. to get the connection works again, the only way is to disconnect and reconnect again.

    Suggestions anyone?

    PS. It happened again I wrote this...

    Thanks for the advice, but I fugured it myself after some trial and error. At HP support online for an hour, they took control of my desktop computer and change a few things, but it was always the same. So, I moved the pc into the room with the router and hard wired it in, no problems for 2 days.

    So I then unplugged and relied on the wireless, once again no problem for 2 days. Hmm.

    Returns the pc in the original piece and it cooled down the signal DESPITE a 4 bars signal and only 5 m away.

    So... in this new pc wireless card isn't obviously a top model of the line.

    Bought a booster wireless D-Link OfficeWorks (cheap) and plugged into a wall outlet in the same room as the pc,... There's been 2 weeks now and not a single drop out...

    :-)

  • Missing VIDEO signals for NOR-5762-(02)

    Hello

    I installed 15.1.1 FlexRIO, and I use it in LabVIEW FPGA 2013.

    I am trying to program the 5762 using the multi-sample CLIP: \Shared\FlexRIO\IO Modules\NI 5762\1.0.0\V5\NI5762MultiSampleClip\Ni5762MultiSampleClip.xml.

    By the November 2015 FlexRIO help, I think I'm supposed to use 'data clock/2' for IO nodes:

    However, there no such signal in the signal list when I add the CLIP:

    So, I followed what are probably mistakes typing in help FlexRIO next to the data signal clock/2 who say, 'IO Module clock 0 must be added to your project in the dialog box properties of the clock of basis of FPGA. The following signals shall be accessible in this area of the clock: I 0 N data, HAVE 0 N-1 data and HAVE 1 N N-1 AI 1 data data. » :

    I add IO Module 0 as a base clock clock to the project:

    And the dialog box above makes me think that IO Module clock 0 is compiled for 50 MHz, when I expect to be compiled at 250 MHz or 125 MHz.

    Exactly how should I clock AI0 AI1 multi-sample IO nodes in the LabVIEW diagram?

    Thank you

    Steve K

    Hi Steve,.

    Looking at your path to the XML CLIP code, it seems that you are using the 1.0.0 version of the CLIP.  This does not include the "Data Clock" signal and uses only IO Module clock 0/1.  There were a few additions in the latest CLIP who could have incompatible with Labview 2013, so only one can use the 1.0 version.  The CLIP of 1.0 is good to use; Simply use the clocks of Module e/s.

    The clock frequency listed in the IO Module clock 0 properties does not affect the frequency of compilation; the frequency is set by the constraints of the CLIP.  I think that this value is used sometimes when generating constraints for some paths, so I would still recommend the 125 MHz configuration.

    Documentation is really confusing, especially in cases like yours helps newer Flexrio with older Labview.

    Kyle

Maybe you are looking for