Capture AbstractActionItem SIGNAL to slip into the menu drop-down

Hello

So I need to do anything when I press the ActionItem in slide it towards the bottom of the context menu on BB10.

I created the shot on the menu drop-down

    Menu *menu = Menu::create();
    Image infoIcon = Image(QUrl("asset:///images/info"));
    menu->addAction(ActionItem::create().title("Info").image(infoIcon));
    menu->setObjectName("infoItem");

Looked at the docs. AbstractActionItem

https://developer.BlackBerry.com/Cascades/reference/bb__cascades__abstractactionitem.html the action point emits a triggered() Signal.

Then ran info a bunch of question that did not help.

  • Looked QTDocs
  • Looked at the signals & Slots section of BB stunts Docs

in my App.hpp file I added

public:
   void debugText();

I tried to connect the menu by using the following code:

connect(menu->objectName(), SIGNAL(triggered()), this, SLOT(debugText()));

It does not work, and I spent 2 hours trying to figure why not.
How do you connect in fact these things?

Thank you!

Hello

trigger signal is attached to ActionItem itself and not Menu object.

And don't forget the Q_SLOT macro.

class xxx : virtual QObject {
  Q_OBJECT

public:
  Q_SLOT void debugText(void);
};

Menu *menu = Menu::create();
Image infoIcon = Image(QUrl("asset:///images/info"));

ActionItem *mItem = ActionItem::create().title("Info").image(infoIcon)

menu->addAction(mItem);
menu->setObjectName("infoItem");

connect(mItem, SIGNAL(triggered()), this, SLOT(debugText()));

Nicklas

Tags: BlackBerry Developers

Similar Questions

  • The cutting tool will not work in trying to capture the menu drop-down

    I've recently upgraded to Office 2016 from 2013 and since then my Snipping Tool will not work correctly. I can always capture what I want except for the drop down menus. Eight other users are connected to my network of the company; all Windows 7, all Office 2016 and it works on all the computer but mine. I opened the Snipping Tool, click Cancel (tried to escape, too), and then open the menu drop down, press Ctrl + print screen and nothing happens. Can someone help me?

    I just thought of it myself. Used to work in previous versions using the Esc, then press Ctrl + print screen. Now, it's a little different.

    1. Your screen are preparing to capture you want, with the exception of the drop down.
    2. Open the capture tool and choose the type of capture you want (I use the Rectangle) and now the new part... Choose a delay for however many seconds you have to when you press New when you can open the drop desired down.
    3. Click new. (The capture tool will activate not to but the number of seconds you have chosen late.)
    4. Open your drop desired down and wait for the tool.
    5. Proceed as usual.

    Hope that helps!

  • 660 x Schematic of the low resistance of the menu drop-down

    The 660 x data sheet mentions that the State of market has an entry (high Z) with low pull-down, but I can't find a diagram with this low resistance value of the menu drop down.

    I want to measure a clock signal on my DUT without loading or distort the signal, so I intend to use a buffer. I am concerned about the current required drive to overcome unrolling integrated resistors and the requirements of threshold as a result of my meter PXI-6608.

    If anyone has a link to the recommended buffers, levers of level or an article in the knowledge base with an example circuit, it would be much appreciated!

    http://www.NI.com/PDF/manuals/372141b.PDF

    It was working fine. I look forward to adding to my next PCB ITA.

  • How can I get a program icon for the office high back on the menu drop-down?

    I accidentally pulled the icon 'Windows Explorer' on the menu drop-down 'Programs' (instead of create a shortcut).  Now I can not understand how to get it back.  If I display the menu drop-down then try to sneak back, as soon as I click the icon, the menu drop down disappears.

    This should do it:

    1. Click the Start button.
    2. Click Open .
    3. Click programs .
    4. Click on Accessories .
    5. Drag the icon into the folder.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • By clicking on tools on the toolbar brings up the menu drop-down instead of switching tools

    CS3 (real licensed copies), OS X 10.5, Cintiq 12WX - using keyboard shortcuts changes the active tool, but clicking on a tool in the tool bar with the mouse or stylus does not; Instead it shows the menu drop-down with associated tools - Polygonal Lasso, magnetic Lasso, etc. - and clicking with the mouse or stylus in an active window has no effect until a second click. It is absolutely infuriating bug, and I have better to do that swearing screaming at my computer when I have deadlines to meet. Can someone please tell me how CS3 accept 'by clicking on a tool' as ' switch so that the tool "rather than" drop-down menu view other versions of this tool? It took half a day of Googling to figure out how to fix these trash the last time it happened, and stupidly, I did not write the process.

    Your understanding of the "obsolete" is as poor as your understanding of 'help '. CS has done everything I need Photoshop CS2 and do still works very well on my Windows machine, CS3 is just what was common back when I had access to student discounts making it actually worth buying a new version of the program.

    I had already tried to reset everything that was possible to reset in Photoshop itself - and reinstall the drivers using another mouse and the Cintiq, and restart the computer - several times without success before finally discovering the source of the problem... which is that whenever the System for the mouse settings have been changed, CS3 distorts apparently any setting double-click outside the default as a Ctrl-click the equivalent of a right click Mac in Windows. Because the double-click speed has been changed, each time I left-button/single-clicked on anything in Photoshop, it had misinterpreted as a right-/ Ctrl-click the button instead, which is the normal command to put in place the drop-down menu with all the other partners of the tools.

    Reset the speed of the default double click in system settings solved the problem, so I'm CE marking as "assumed answered" in the hope that someone else running into the same problem on an old system might find with Google at least.

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • symbols of site little left of the names of sites in favorites have disappeared in the menu drop-down

    These are the small individual square symbols identify the Web site. They are present when checking under "Show all bookmarks" menu drop-down [which opens the info files], but do not show that they were previously in individual link lines in the menu drop-down.

    Hi nateich2,

    You should take a look at this article which discusses some of the problems with the latest version of Firefox.

    There is some information here that should help you solve your problem. Fortunately, this is a very easy solution.

    Hope this helps!

  • Epson Workforce 545 all-in-One: project of black and white print option is no longer in the menu drop-down

    Hello. I am trying to print in draft mode, black and white, but since I recently installed and then uninstalled a printer canon, printer all-in-one Epson Workforce 545 is more offers me black and white mode fast draft on the menu drop down.

    Thanks in advance for your help.

    It is a forum of HP.  The Epson Workforce 545 you had to best results in the Epson support pages here.

  • The bookmarksdrop in the menu drop-down is too big, as it covers the greater part of my screen - how can I make it smaller.

    Whenever I select the menu drop down Favorites, it is so big that it covers the major part of my screen. Then, when I go to a folder in the drop-down menu, if I stop to any other folder, it opens and is so great that the menu drop-down or completely covered. This is VERY irritating and I never had this problem before moving on to Firefox 5.0. How do I don't cure it?
    I use a MacBook with a 13 "screen

    It is probably because you have one or more bookmarks with a long title.

    The width of a column in the list of bookmarks is in the current versions of Firefox automatically adjusted the bookmark with the longest name.

    You can check the names of the bookmarks and the longer more short.

  • Is there a way to return to the menu drop-down button "return"?

    It's a giant pain click back several times when before I could just look in the menu to find the page I wanted to come back.

    Is there a way to do this somewhere else perhaps?

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • When I go to delete a bookmark - I click the menu drop down and the page that I just removed is still there. What I am doing wrong.

    I click the menu drop down and highlight and open the web page and then I click on the yellow star and choose the tab delete press done and when I close and click the menu drop-down new my web page is still there that I wanted to delete.

    Click right a bookmark in the menu dropdown bookmarks and select Remove to remove the bookmark.

  • When I click on 'file', 'Edition', etc. in Internet Explorer or Windows Explorer, the menu drop-down appears to the right what I'm clicking on.

    When I click on 'file', 'Edition', etc. in Internet Explorer or Windows Explorer, the menu drop-down appears to the right what I'm clicking on., making it sometimes difficult to get to the line on the drop-down list, I want to access.  He acted in this way for a while, but I think much about it until I was on a friends computer that do not have the problem.  Anyone know how I can fix this problem?  Running Vista Home Premium SP2 on a Toshiba Satellite A215-S4807 laptop.  Thank you!

    It is perhaps a workaround for you...

    If you leave space on the left of the screen, the drop-down list box on the left side.
    Like this.. .notice that some of my desktop icons appear on the left where the space was.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How can I delete the Favorites menu in the menu drop down address bar in IE8?

    How can I delete the Favorites menu in the menu drop down address bar in IE8?

    Hello

    Because you used the nickname 'DaddyJeff' do you need to remove the access of all to Favorites? Otherwise, please
    describe in more detail what you need to do.

    I think that you should use the Parental control or group policies (GPedit if you have professional, company,
    (or Ultimate).

    See this and the 'related links '.

    How to install and use Parental controls in Vista
    http://www.Vistax64.com/tutorials/95139-parental-controls-Setup-use.html

    and these:

    Setting up Windows Vista's Parental control
    http://www.bleepingcomputer.com/tutorials/tutorial139.html

    Set up Parental controls
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Cascades: How to set the background image for the menu drop down and etc...

    Hello

    Is there an easy way to set the background image for the menu drop down and etc, current support only black as a background?

    Thank you

    Tom.

    Welcome to the forums!

    This is currently not supported unfortunately.

    I encourage you to save a feature for this request:

    https://www.BlackBerry.com/JIRA/secure/dashboard.jspa

    See you soon!

    Martin

  • I just installed Acrobat Pro XI.  When I went to start the program asked me for a serial number, which I have, but the menu drop-down did not include Pro XI and gave me an error message

    I can't not far as this screen because the serial number does not match any product on the menu drop down.

    Apparently, it sounds as if you have purchased an upgrade, which if so would have been a mistake. Of course, if this is not the case, check received. If still not sure please tell us price paid.

Maybe you are looking for

  • Satellite X 200: is it possible output audio 7.1 HD-DVD on HDMI

    Hello just wondering if anyone can confirm if/how it is possible to output 7.1 channels via the HDMI port on the portable X-200 (20 years)? It seems that Toshiba HD-DVD player allows only 5.1 selectable channels in the audio settings.Thinking about u

  • Try to update Windows Vista

    Hello! I tried to update my Vista without success and got an error 8024402F code... I didn't have no idea wat tat is restarted my pc several times and tried to update after every reboot... Kindly pls explain to me on my nxt step... Thank you

  • Cannot read e-mail messages

    My hot mail is so funny. I can't open my Inbox to read my mail. I'm clicking on the mail to come and it doesn't open at all. The format of the hotmail looks different than before. The status bar I see it connects to BFx6 mail

  • Windows Explorer has stopped working vista 64-bit

    This is a random error that continues to be. I wonder if I want to seek a solution, when I do, it seeks a minute then quits or restart the program, when I do closes. It's random, seems to happen with windows internal programs, it happens more with I

  • HelpNavigator.Find does not

    I work with the HelpNavigator enumeration. I'm not able to use HelpNavigator.Find. After hunting for the two solutions, I found that it was a bug of Microsoft. Can someone please help me with this problem? Waiting for response.