touch of container

I hope this isn't a stupid question:

I am trying to catch the signals of some containers of touch, touchEnter and touchExit.

I have:

Sample class: {public QObject

Q_OBJECT
public:
Example();
virtual ~ Example();

signals:

...

public slots:

void touch (bb::cascades:TouchEvent * event);

private:

...

};

I'm trying to connect the touch of the container to my contact:

Boolean result = connect (example_container, SIGNAL (touch(TouchEvent*)), this, SLOT (touch(TouchEvent*)));
Q_ASSERT (result);

But he said that neither example_container, nor this ' touch is a signal/slot.  I get the docs:

https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__container.html#function-TOU...

Looks like a slot for me not to mention that mine is in the locations of the header section.

No idea what I'm doing wrong here?

Hello
Inside macros SIGNAL() and SLOT() type names should be complete. MOC cannot resolve the namespaces.

And just to be sure, I suggest using a different name for the housing, e.g. onTouch. It is not mandatory, but avoids conflicts if you represent a signal with that name or inherit from a class where the signal is reported.

Boolean result = QObject:connect (container, SIGNAL (touch(bb::cascades::TouchEvent*)), this, SLOT (onTouch(bb::cascades::TouchEvent*)));

public slots:

Sub onTouch (bb::cascades:TouchEvent * event);

Tags: BlackBerry Developers

Similar Questions

  • Cancel key event is not sent immediately

    It is a question for the gurus of management of key events. The problem I have is this: I have two containers A and B which are side by side and are equal in size and shape. If a finger touches the first A container, a touchdown event is generated on A. As your finger moves on a container, then touch MOVE events are generated. When the finger leaves container and begins to touch the container B, touch MOVE events are generated on B. When the finger is released during a B, CANCEL button is generated A and then b. touch UP

    Is it possible to receive on A CANCEL key as soon as the finger stops to touch a container?

    Thank you!

    On further investigation, I found a better solution that uses the onTouchEnter and the onTouchExit. As soon as the press finger leaves A container, onTouchExit is issued. As the finger enters container B onTouchEnter is issued. When the finger is released during a B, only editing event is released.

  • Contact event in PRC management?

    I want to manage touch event on CPP and not qml.

    Redo exactly the same as the solution of http://supportforums.blackberry.com/t5/Native-Development/touch-does-not-fire-for-q10/td-p/3026980

    with no qml whatsoever.

    Touch the event indicates on the label.

    Click event displays on the console.

    applicationui.cpp:

    #include "applicationui.hpp"
    
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    
    ApplicationUI::ApplicationUI() :
            QObject()
    {
        // prepare the localization
        m_pTranslator = new QTranslator(this);
        m_pLocaleHandler = new LocaleHandler(this);
    
        bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
        // This is only available in Debug builds
        Q_ASSERT(res);
        // Since the variable is not used in the app, this is added to avoid a
        // compiler warning
        Q_UNUSED(res);
    
        // initial load
        onSystemLanguageChanged();
    
        //Create Page
        Page *page = new Page();
    
        // Create Label
        label = new Label();
        label->setMultiline(true);
    
        // Connect Tap handler
        TapHandler *tapHandler = TapHandler::create()
            .onTapped(this, SLOT(onTappedHandler(bb::cascades::TapEvent*)));
    
        // Create Container, add Label and Gesture Handler to it and connect to touch event
        Container *container = Container::create()
            .layout(new DockLayout)
            .horizontal(HorizontalAlignment::Fill)
            .vertical(VerticalAlignment::Fill)
            .add(label)
            .addGestureHandler(tapHandler)
            .onTouch(this, SLOT(onTouch(bb::cascades::TouchEvent*)));
    
        // Add Container to Page
        page->setContent(container);
    
        // Set created root object as the application scene
        Application::instance()->setScene(page);
    }
    
    void ApplicationUI::onSystemLanguageChanged()
    {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString("TestContainer_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
        }
    }
    
    void ApplicationUI::onTouch(bb::cascades::TouchEvent* event){
        switch(event->touchType()) {
            case TouchType::Cancel: {
                addToLabel("TouchType: Cancel");
                break;
            }
            case TouchType::Down: {
                addToLabel("TouchType: Down");
                break;
            }
            case TouchType::Move: {
                addToLabel("TouchType: Move");
                break;
            }
            case TouchType::Up: {
                addToLabel("TouchType: Up");
                addToLabel("X: " + QString::number(event->windowX()) + "Y: " + QString::number(event->windowY()));
                break;
            }
            default: {
                addToLabel("UNDEFINED");
            }
        }
    }
    
    void ApplicationUI::onTappedHandler(bb::cascades::TapEvent* event) {
        qDebug() << "Tapped";
        qDebug() << "X:" << event->x() << "Y:" << event->y();
    }
    
    void ApplicationUI::addToLabel(QString text) {
        label->setText(text + "\n" + label->text());
    }
    

    applicationui. HPP:

    #ifndef ApplicationUI_HPP_
    #define ApplicationUI_HPP_
    
    #include 
    #include 
    #include 
    #include 
    
    namespace bb
    {
        namespace cascades
        {
            class LocaleHandler;
        }
    }
    
    class QTranslator;
    
    /*!
     * @brief Application UI object
     *
     * Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class ApplicationUI : public QObject
    {
        Q_OBJECT
    public:
        ApplicationUI();
        virtual ~ApplicationUI() {}
    private slots:
        void onSystemLanguageChanged();
        void onTouch(bb::cascades::TouchEvent* event);
        void onTappedHandler(bb::cascades::TapEvent* event);
    private:
        void addToLabel(QString text);
    
        QTranslator* m_pTranslator;
        bb::cascades::LocaleHandler* m_pLocaleHandler;
    
        bb::cascades::Label* label;
    };
    
    #endif /* ApplicationUI_HPP_ */
    
  • problem syncing iPod touch with iTunes

    Hi, I had a problem syncing my iPod touch with iTunes. I get a message indicating that there is not enough free space to hold items in the iTunes library, which indicates that I need about 43 GB.

    I tried to take as much data on my laptop thinking it would make more space available to my iTunes library which is held on my laptop.

    I had a problem some time with the storage of data files and program files. I divide the hard drive and I have a Macintosh HD 2, but also a main drive of the HD. I find that I have an iTunes library in two HD players, so I think I have a duplicate library.

    My iTunes app shows that I have a size of music library of-33,40 GB containing elements of 6940. My iPod touch has 6920 songs and 33 videos, 15 photos, 14 applications. The ability of the iPod touch is 56.4 GB, with 2.8 GB available.

    If the problem is the duplication of library, can I remove in double track of the HD2, and how to change tp parameters to stop duplication.

    Duplication of audio content seems to be a concern for you. If you have a desktop Mac, open iTunes/library/display the duplicate items. You can view and edit tracks easily.

    If you do not have a Mac desktop computer, the question is a bit tricky; There is no way to detect mp3 duplicates except manually.

    The good news is that the majority of your data bloat is likely to be in the 33 videos. I could most of the videos of archives and see what happens. (I have banned all THE videos of my iPod Touch and I couldn't believe how much I got space).

  • How to add mobile space for ipod touch?

    Hello

    My daughter has a 5th gen iPod Touch 16 GB. We're leaving on a long trip for 5 weeks. She would like to have a season of a television show for his iPod for flights, trains, buses, etc.  We are not planning to put a computer with us, and I know that 10 episodes of tv series will not fit on his iPod. Is it possible to store these files and access our trip? Do we need to rely on the good internet connection and stream/download one time?

    Thank you

    If the files do not match you will need to find how broadcast them - this will depend on came the files and if you have a reliable and fast hosting internet etc.

    I assume that you have the files in iTunes on a computer, if that's the case determine the option synchronize movies SD (defined in the "Summary" section during the synchronization). If you are lucky that these files will contain a HD & SD version that can allow them to synchronize. The App store may be able to download the SD versions if they are purchased it, trying to find in your purchase history if the files are HD read each file to examine that information.

    Otherwise try to select the files in the list of iTunes TV series and create a new version via the "File menu > create an iPhone / iPod version'." It can reduce the size enough to stick them on the device.

    purchases on the iTunes store cannot be converted because of the DRM.

    Also consider to remove applications and other files to free up space, assuming that they are less important compared to the videos.

    iOS lists the storage used by the ' settings app > general > use > manage storage ', see if it will give ideas what to empty.

    P.S. I think that the "Camera Connection Kit" can play movies stored on SD cards, but I didn't know - he can work with iTunes not store purchases (have to love DRM). Search here to notice them, I'm sure that others have discussed this. It can be a way to bypass it?

  • Please help - I don't understand this: because iPad can contain only the content of five Apple ID.

    I give my son my iPad.

    I try to download Apps on it and I get the message: some of the files in the iTunes Store iTunes library were not copied to the iPad because iPad can contain only the content of five Apple ID.

    As far as I know there are only 2 Apple ID involved - my own and the one we did for him as a minor.

    If someone has had this problem and can you help me to overcome.

    It is typical that this situation happens the day before her birthday - I wanted to give him tomorrow all loaded with his own stuff. It five of its apps accepted last month when I first came with the idea and now...

    Anyone?

    This means what it means: iTunes Store items are tagged with the Apple that was used to buy ID. Apparently in this case, for some reason, over 5 ID are involved. Which could include accounts that are no longer used.

    In general, it is best to follow these steps before giving your iPad to someone else: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • IPod Touch 6 How to find

    Hello

    How can I search to find anything in any application. For example, if I want to find a specific point using the search, how can I enter the word 'Apple' to find something in the reminder application that contains the word "Apple". Same for Notes, Contacts, or calendar?

    I have an iPod Touch 6

    Thank you

    Slide down in the middle of the screen, or drag through the screens all the way to the left to access Spotlight search.

    In the search box, enter your term. Searchlight in a variety of sources. even within applications, such as notes and reminders.

    The results will be sorted by category.

    You can change which applications are sought after and shown as search results by going to settings-> general-> projector and turn on or off for each application.

    For the performance of specific applications, you may need to scroll down through the results. To find the application you want to.

    https://help.Apple.com/iPod-touch/9/#/iph3c511548

  • Can I transfer my apps and content of an iPod touch 4th generation to an iPod touch 6th generation?

    I was wondering if I could transfer all applications and content in them on my iPod Touch 4th gen on an iPod Touch 6th gen. If it is possible how I would go to this topic?

    Yes, see recover your iTunes from your iPod or an iOS device if it is contained on the device that is not in your library.

    TT2

  • Found an ipod touch, 5 gen, MOSS oak case of Survivor, perhaps lost to the East of Dallas, TX, serial No.: CC * MJF

    Found an ipod touch, 5 gen, MOSS oak case of Survivor, perhaps lost to the East of Dallas, TX, serial No.: CC * MJF

    < personal information under the direction of the host >

    You might hope that the owner might be able to locate the iPod Touch, if it

    Unit is able to access and use internet FindMyMac/iPhone.

    You can report the device that you have found to the local police;  don't know if they

    could help or would help to unify the product with the owner. Some info on

    How managing an iDevice found may be contained in support topics, like:

    • If your iPhone, iPad or iPod touch is lost or stolen - Apple Support

    The topics generally appear in a search:

    https://DuckDuckGo.com/?q=How + to + report + iPod found ++ & t = ffsb

    Generally most lost objects are reported to local police, since

    Apple itself doesn't seem to have no way to contact the owners of a

    directly lost product. -These CSA discussions are for the most part, users

    like you, who are volunteering to help others; without compensation...

    We have therefore no channel special contact Apple on a product lost.

    Serial numbers and identification of a product will not be

    the topic thread and will be deleted. as a support policy.

    Sorry that I am of no use to help you return the iPod touch 5

    for the owner. He or she may be able to find it, if they enable the features in

    the device and in any other Apple device to follow.

    "Find my iPhone is the only way that you can follow or locate a lost device or missing.

    If find my iPhone is not activated on your device until missing, there is no other

    Service from Apple that can find, follow or flag, otherwise your device for you. »

    In any case... good luck!

  • Satellite U920T - touch screen does not

    The touch screen on my U920T satellite does not work from a few days back.
    I can't find all the settings for touch or any (except the touchpad) touchscreen device in Device Manager.

    I'm not sure exaclty when he started to malfunction.
    I installed the 8.1 Windows a few months ago and had a problem with the card wireless at the beginning, but the problem with the touch screen just appeard this week.

    What driver Toshiba control the touch screen?
    Is it a hardware problem or software?

    Hello

    To be honest there is no special driver to control the touch screen.
    The driver is provided by the Windows System.

    I think you should get the laptop back to factory settings but I fear that this will not solve the problem of Mr. smells like a hardware problem because I found some threads here in this forum about the dysfunction of the touch screen and especially the problem could be solved by service agents.

    By the way: before you run the recovery process try to configure the stylus and touch screen.
    Go to the control panel (Windows key + X-> Control Panel)-> Tablet PC setting.
    The first display tab contains options such as configure screen stylus and touchscreen.
    Here, you should be able to start the installation program and identify the touchscreen.
    The first option must contain 1 internal LCD
    At the bottom, you might find button to calibrate and reset the settings for the internal LCD.

  • Satellite U920T - duplex cam + touch screen + win button does not work

    I have the problem as the touch screen + frontal camera + camera rear windows on the screen button do not work.

    I tried to install the drivers to display/graphics but that has not helped.

    I bought this laptop from Saudi Arabia and it is still under warranty but I am out of country, so I can't ask the warranty as well.

    someone please fix this and tell me the solution, or tell me what I need to do?

    Help will be really appreciated.
    some details on my laptop:

    Toshiba Satellite U920T-B919.
    Windows 8.1 updated 64-bit.

    Thank you

    Since you mentioned different problems with your laptop, I think that in this case its recommended to get the laptop back to factory settings just to check if all these problems are related to the problem of system.

    Regarding the webcam: Windows 8/8.1 already contains the webcam drivers and therefore additional webcam driver installation isn t possible. Extra webcam driver is not simply.

    From my point of few smells of any description as a bit of a problem of material, the upper part of the slide where the touch screen is part of.
    The key win as well that the two cams are located and there are probably some lose the connection between the two parties (touchscreen and keyboard)

    Anyway, as I said more top, its recommended to recover the laptop to factory settings just to make sure that the system isn t the troublemaker.
    In case of hardware problems, you must get in touch service available in your country.

  • Satellite U920 - touch screen no longer works

    My touch screen stopped working all of a sudden not. I can use the laptop by the keyboard and mouse. Is it possible that I went it accidentally extinguished by a combination of keyboard?

    How can I solve this?

    To my knowledge, there is no shortcut keyboard or combination that would be activated or deactivate the touch screen.

    But try to calibrate the touch screen (digitizer). You must go to the control panel (Windows key + X-> Control Panel). You will find a Tablet PC setting.

    The first tab called display contain some options such as configure the stylus and touchscreen. Here, you should be able to start the installation program and identify the touchscreen.

    In the screen options 1 internal LCD must be chosen.
    In addition, you can calibrate and reset the settings for the internal LCD.

    Check if this is possible

  • Why my digital touch is not to my wife watch?

    My wife Gets the hand that I send him.  But I can receive his without problem?

    My son and daughter in law both get my keys.  Not sure why it isn't?

    Even though I've updated my watch and my touch hers never happen on his watch.  She is able to receive the keys of

    our son and daughter-in-law.

    In any case, thanks for help with this issue.

    Tom

    Hi Tom

    Try the following steps:

    • In the Contacts application on your iPhone:
      • Check that the power plug for your wife contains the iPhone phone number and its own address email ID Apple (and none of your details).
      • Check that your contact card contains only your Apple ID email address and your own iPhone number.
    • On your iPhone, go to: settings > Mail, Contacts, calendar > in the Contacts section, check my Info using your contact card.
    • On your iPhone, go to: settings > general > Siri > My Info - make sure your contact card is selected.
    • Check that you have added your wife to the friends list on your Apple Watch using its correctly completed contact card:
      • On your iPhone, in the application of the Watch: Watch My > friends.
    • Remove the old iMessage conversations with your wife on your iPhone and Apple Watch:
      • iPhone: app Messages > swipe to the left on a message thread > delete.
      • View: Open the Messages app (from the home screen, which is accessible by pressing the digital Crown) > swipe to the left on a message thread > tap on Trash / delete.
    • Set new conversations of Messages from your iPhone phone number:
      • iPhone: settings > Messages > Send and receive > scroll to start new Conversations of > choose your iPhone phone number.
    • Check the email addresses to which you can be reached via iMessage:
      • iPhone: settings > Messages > Send and receive > under you are reachable by iMessage to > allow email address Apple ID (with a scale) (do not enable others who are not only yours).
    • On your iPhone in the app Watch: Watch My > general > reset > press reset sync data:
      • You won't see anything happen after pressing it (the process runs in the background, invisible to the user).
      • Wait a minute or so (to allow contacts to be erased and replaced on your watch).
    • Disable and re-enable iMessage on your iPhone:
      • iPhone > settings > iMessage > enable/disable / enable again.
    • Restart your iPhone and your watch (turn the two together off the coast, then restart your iPhone first):
      • To turn off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off. To restart: press and hold the side button until you see the logo.

    More information:

    Use the touch-Apple Support

  • Satellite C660-28 d - keyboard and touch pad problems

    Hey guys,.

    In the past months, my laptop had become almost unusable.

    It began with the key odd work stoppage or becomes difficult to use, but now it happened to many of them and last night my touch pad stopped working all together.

    I'm not really a tech head and fight with it.

    I have a Toshiba satellite C660 28 T.

    Any help would be thank you very much.
    Maybe even a factory reset?

    I don't know how to proceed.

    Concerning
    Paul

    Hello

    With regard to the problem of keyboard:

    From my point of view of the few sounds of keyboard described as a material problem internal related dysfunction... probably in order to solve this problem, the keyboard should be replaced... just to make sure that your internal keyboard is affected, please join the external USB keyboard and check if it works properly.
    If you see any problems, the problem is no doubt by a malfunctioning internal keyboard and as mentioned earlier, you will need to replace the keyboard.

    Regarding the touchpad:

    I'm not sure if the two issues are interrelated, but the touchpad can be disabled by using the function keys... I recommend you to check this... (function key details are also in the user manual)... you can also try reinstalling the touchpad drive.

    Tip: this forum contains many discussions about similar problems... so I recommend you to read the recommendations posted in this community.

  • Satellite C50T - A - 11 d - touch screen does not work

    Searched - Microsoft and Toshiba drivers and find NOTHING - in fact in the box drivers from Device Manager - under Hid compatible touchscreen - I disabled and enabled it, tried to download the latest version of the driver - said this is the latest driver - but also said so there is no driver device associated with this device.

    Small keyboard will appear next to the system tray, but nothing on the touch screen works somehow

    Help please before I send this laptop pretty back!

    Hello

    > Sought - Microsoft and Toshiba drivers and find NOTHING - in fact in the box drivers from Device Manager - under touchscreen compatible Hid

    There is no such thing as a special driver for touchscreen and it's why you can't find this driver on the Toshiba driver page. Contains the Windows system and own internal driver to control the touch screen.

    Go to control panel-> Tablet PC settings control
    Here you will find some options to calibrate the touch screen

    In the view tab, you will find the setup button.
    Click the Setup button to launch the Setup where you could point to the touch screen
    In the substantive area called display display options you could calibrate the touch.

    In case this workaround would not be possible or would not work, I recommend you put the laptop back to factory settings using the recovery media or HARD drive recovery option.

    But beware: this recovery format the HARD drive and thus data backup would be recommended.

Maybe you are looking for

  • 15 Firefox Linux detects is not plug-ins

    Firefox Nighly build 18 good work and all the plugins work, whereas the same OS Firefox15 detects not plug-ins. Under everything: plugins there is message "no active plugins found. All the plugins files present under usr and/usr/lib/firefox/plugins.

  • problem with app store

    I get the message about a problem with a previous purchase on the app store. I changed my payment information and I bought a $20 iTunes card and bought it. The iTunes card has another $20 on it, and my new debit card is refused. I don't know what els

  • Using all-in-one with answering machine

    I have an office jet pro 8600 and love it.  However, I would like to know if it is possible to use the fax without having to connect to my machine.  I would use the printer and the answering machine in two different areas.  Is this possible?

  • False statement

    I just got a phone call from 282-726-2524. The person claims to be calling on behalf of Mircosoft Windows wanting to make changes to the system on my personal PC. Of course I told her 'NO '. Who should be reported?

  • I have a problem with installing a virus.

    Original title: Remove rogue installation My program of virus, Avast, blocked a download of thugs called the status, but obviously did not setup. So now, whenever I start the computer, Windows tries to install Status to find out that it isn't here. H