QtMobility

Hello

y at - it any attempt to implement the native BB10 to Qt Mobility api?

Interested in QCamera/QSensors

Thank you

The camera of Qt API must be in the new beta 2 release.  It should not take long for the sensor of Qt API to get on our platform, but I've yet to ETA.

Tags: BlackBerry Developers

Similar Questions

  • AxesOrientationMode has not been declared?

    I have a project of cascades c ++ which uses QCompass.  I understand the at the top of the hpp file.  I have a compass to level class named m_compass.

    In the pro file, I added the CONFIG += mobility and sensors += MOBILITY

    In the cpp file, I have this:

    // at the top
    using namespace QtMobility;
    //...
    // in the constructor
    m_compass->setAxesOrientationMode(AxesOrientationMode::FixedOrientation);
    

    It gives me the error:

    'AxesOrientationMode' has not been declared
    

    But it seems that its share of the file Compass.  I'm guessing that I'm missing an inclusion, but can't find that one.

    Did not use this API but seems the enum is declared in the QCompass class itself. Try:

    m_compass-> setAxesOrientationMode (QCompass::FixedOrientation);

  • Duty slot in my sensor signal connection related problem class.

    I fanned simple class based on the NDK documentation found here - http://developer.blackberry.com/native/documentation/cascades/device_comm/sensors/

    But in my case signals do not plug on slots and returns always false. I was just wondering what I did wrong? Looks all logical.

    Here's the class:

    #include 
    #include "Sensors.h"
    
    Sensors::Sensors(QObject *parent) : QObject(parent) {
        // Create the compass sensor.
        m_CompassSensor = new QCompass(this);
        m_Accelerometer = new QAccelerometer(this);
    
        // Set the orientation mode to fixed so that sensor readings
        // aren't affected by device orientation.
        //m_CompassSensor->setAxesOrientationMode(QCompass::FixedOrientation);
    
        // If any Q_ASSERT statement(s) indicate that the slot failed
        // to connect to the signal, make sure you know exactly why this
        // has happened. This is not normal, and will cause your app
        // to stop working
        bool res = connect(m_Accelerometer,
                           SIGNAL(readingChanged()),
                           this,
                           SLOT(accelReadingChanged()));
    
        res = connect(m_CompassSensor,
                           SIGNAL(readingChanged()),
                           this,
                           SLOT(compassReadingChanged()));
        Q_ASSERT(res);
    
        // Since the variable is not used in the app, this is
        // added to avoid a compiler warning.
        Q_UNUSED(res);
    
        m_CompassSensor->start();
    }
    
    Sensors::~Sensors() {
        m_CompassSensor->stop();
    }
    
    void Sensors::compassReadingChanged()
    {
        QCompassReading *reading = m_CompassSensor->reading();
        qreal azimuth = reading->azimuth();
        qDebug() << "The azimuth is " << azimuth << " degrees.";
    }
    
    void Sensors::accelReadingChanged()
    {
        QAccelerometerReading *reading = m_Accelerometer->reading();
        qreal x = reading->x();
        qreal y = reading->y();
        qreal z = reading->z();
    
        // For debugging purposes
        qDebug() << "x acceleration: " << x;
        qDebug() << "y acceleration: " << y;
        qDebug() << "z acceleration: " << z;
    }
    

    Here is the header

    /*
     * Sensors.h
     *
     *  Created on: 2014-02-01
     *      Author: misha
     */
    
    #ifndef SENSORS_H_
    #define SENSORS_H_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    
    using namespace QtMobility;
    
    class Sensors : public QObject{
    public:
        Sensors(QObject *parent = 0);
        virtual ~Sensors();
    
    private:
        QCompass *m_CompassSensor;
        QAccelerometer *m_Accelerometer;
    public slots:
        void compassReadingChanged();
        void accelReadingChanged();
    };
    
    #endif /* SENSORS_H_ */
    

    Please advise!  I was fighting with this for a few days already... I bet I missed something important but s mall

    Thank you

    Hello! Q_OBJECT macro is missing from the top of the class declaration:

    class Sensors : public QObject{  Q_OBJECT
    public:
      Sensors(QObject *parent = 0);
    

    p.s. This line changes, the first could not connect will not be detected. It should probably be & =

    res = connect(m_CompassSensor,
    
  • "bb.cascades.multimedia" module is not installed

    Hi, I was wondering why the only thing that seems to be able to import is bb.cascades I'm on the latest sdk

    "bb.cascades.multimedia" module is not installed

    module 'QtMobility.sensors' is not isntalled

    Thank you

    The QML preview does currently support other than extra libraries

    import bb.cascades 1.0
    

    I don't belive it will be possible to use the overview with additional libraries on the road, but so far there if I want to use the preview I just create a new empty project & test this way

  • Problem running QtGui / app GraphicsView on Dev Alpha

    Hi guys,.

    I'm trying to port a Harmattan on BB10 app with little success. I obviously it changed so that "haptic" uses VibrationController and QMediaPlayer replaced by MediaPlayer. QAccelerometer I used as-is from QtMobility. Other than that, I generated a new project of Cascades in the NDK, copied the source files in the folder source (qml to assets) and followed these instructions: http://www.maemopeople.org/index.php/jaffa/2012/06/20/initial_success_in_porting_harmattan_sym

    My program is compiled, but never reaches int hand (...). This is the beginning of main.cpp:

    #include 
    #include 
    #include 
    #include "mygraphicsscene.h"
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        fprintf(stdout, "reached this\n");
        fflush(stdout);
        qDebug() << "testing debug\n";
    

    None of the above messages appears when you run the application on the Dev Alpha.

    Here is the .pro (my game using opengl in graphicsview), the Makefile and bardescriptor, if theyre all help:

    APP_NAME = testapp
    
    CONFIG += qt warn_on cascades10 mobility
    QT += core declarative opengl
    MOBILITY += sensors
    LIBS += -lbbsystem -lbbmultimedia -lbbdevice
    INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtCore
    DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtCore
    
    include(config.pri)
    
    QMAKE_TARGET  = testapp
    PROJECT_DIR   := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    I18N_DIR      := $(PROJECT_DIR)/translations
    
    include mk/cs-base.mk
    
    
    http://www.qnx.com/schemas/application/1.0">
        com.example.testapp
        testapp
        1.0.0
        1
        The testapp application
        mja
        gYAAgAQEBXEMkIBptFYS5lLFGpY
        
            none
            false
        
        core.games
        
           armle-v7
           testapp
        
        
           Qnx/Cascades
           armle-v7
           testapp.so
        
        
           armle-v7
           testapp
        
        
           x86
           testapp
        
        
            icon.png
        
        icon.png
        assets
        
            
        
        run_native
        read_device_identifying_information
        access_shared
        
        
    
    

    I know it's hard to fix something like that, but maybe that someone has faced problems with graphicsview?

    Well, got running and have really no idea what I did. Let's see if I can fix the remaining bugs.

    Edit: once I got the correct libraries loaded, I think it's mistakes in qml who crashed the app.

  • Using QtConnectivity for Bluetooth

    Bluetooth is QtConnectivity supposed to work? I already use Bluetooth functions (bt_spp_ *) of btapi which work very well, but I really want to use the OBEX support in QBluetoothTransferManager.

    The problem is that from the beginning, when I try to create Bluetooth RFCOMM socket it fails.

    QBluetoothSocket socket = new QBluetoothSocket(QBluetoothSocket::RfcommSocket);
    

    Error:

    c:/bbndk/target_10_2_0_339/qnx6/usr/include/qt4/QtCore/qiodevice.h: In copy constructor 'QtMobility::QBluetoothSocket::QBluetoothSocket(const QtMobility::QBluetoothSocket&)':
    c:/bbndk/target_10_2_0_339/qnx6/usr/include/qt4/QtCore/qiodevice.h:169:5: error: 'QIODevice::QIODevice(const QIODevice&)' is private
    c:/bbndk/target_10_2_0_339/qnx6/usr/include/qt4/QtConnectivity/qbluetoothsocket.h:60:29: error: within this context
    

    Hello

    What is your actual code? socket is not a pointer. new allocates memory and returns pointers.

    Thank you.

  • try to use Qt Mobility 1.2 - How to add the correct library?

    Using the QML PositionSource which is part of Qt Mobility 1.2, but continues to receive a 'module 'QtMobility.location' is not installed. At the top of my page main.qml I have "import QtMobility.location 1.2" but don't know what to do at this point.

    Any ideas? I'm a total tower to develop so, more information the better.

    Import QtMobilitySubset.location 1.1 the BB10 Qt Mobility does contain unfortunately full.

  • Required LIBS in the .pro using QAccelerometer, QAccelerometerReading file

    Hello

    I want to use the class QAccelerometer and QAccelerometerReading in my application. So, what libraries to include for them.

    And where I will get the libs list to include for the use of these classes.

    Kind regards

    Sanjeev

    You have to add
    use of QtMobility names
    in your source file?

  • Event QtQuick App cannot play the sound on the playbook + other problems

    Hello

    I wore a qtquick running on BB10-based application successfully. My long-term problem, it's that my applications cannot play the .wav sounds. He used the QtMobility on symbian. I am looking for a replacement and trying to adapt with open AL example in BlackBerry Github, but hopeless.

    Here is the source code: https://gist.github.com/fe1fcbbb6753bb7ff06b

    I'm lie the audio to the qtquick with the setcontextproperty method qml file. I checked with console.log () it is called.

    I wonder that the problem between the location of the file or the method is not called.

    my sounds is located under directory

    QML/stem/sounds/from the root.

    I also find that I don't see no output from qDebug.

    I use the Qt Creator for PlayBook. I wonder if I can use the momentics?

    Thanks for help. I expect to release my app before the release of BB10

    I have my solution for this problem. I opened my .pro via momentics IDE. I clicked the right mouse in the project > set up > add libraries > check list all libs > then follow the cheats provided to change the .pro files. Simple and it works.

Maybe you are looking for

  • HP Pavilion DV6 - 6070CA drivers Windows 8

    I'm reposting this question because my previous question is still unanswered and experts are on the forum until September 21. I need drivers for Windows 8 on my laptop (dv6 - 6070ca) Specifically for 64-bit Windows 8 drivers. HP will provide updates

  • Can I programmatically change the active group on a Hypertrend in DSC?

    I would like to know how to change the active group of a hypertrend program in Labview DSC.  I saw a link that says it can be done at Lookout.  But in the module DSC, the active group is read-only. I know a hard way to do it.  I could save the settin

  • Pavillion HP-p6380t: computer hangs on the first screen

    Have HP Pavillion HP-p6380t (bought in 2010) which hangs to the first screen and does not start. The computer is progressing to the point where a repair disc may start or keyboard and mouse can operate. It stops just dead in its tracks. Need help.

  • Copy to a micro usb flash drive

    I plugged a cruzer micro flash drive and copied audio books and the air of my itunes library. Everything seemed to be there if I'm disconnected. When I went to reconnect to add I got the message, you will need to format it to use it. I clicked on the

  • Windows live hotmail support down for maintennance! ??

    Hi all. This is a very good question. Because the support of Windows live hotmail don't market, how is possible to solve a problem of block list? http://www.windowslivehelp.com (visit this link and see for yourself = January 28, 2011) Does anyone kno