Why NowPlayingConnection can be assigned to the C++ object as a property?

Is there a reason why NowPlayingConnection can't be assigned to the property?

I followed fragments of code (C++), setters and getters created well, all imports also.

Q_PROPERTY (bb::multimedia::MediaPlayer* mediaPlayer READ mediaPlayer WRITE setMediaPlayer)
Q_PROPERTY (bb::multimedia::NowPlayingConnection* nowPlaying READ nowPlaying WRITE setNowPlaying)

Then in QML I'm assigning

        DownloadedPodcastsManager {
            id: downloadedPodcastsManager
            mediaPlayer: player
            nowPlaying: nowPlayingConnection
        },

And allocation of property called mediaPlayer works well but assign nowPlayingConnection ends with

Error: Cannot assign QObject * void

reported by QML.

I don't know what the problem is.

Any clue?

Tom

I found most likely the root cause.

QML is passing the instance of bb::multimedia:QmlNowPlayingConnection instead of bb::multimedia:NowPlayingConnection

This is the reason why the property declared as bb::multimedia:NowPlayingConnection * cannot be assigned

So I made this property of the QObject and casting instead I need so it works fine now. Not happy with this, but better than nothing.

Tags: BlackBerry Developers

Similar Questions

  • Why Adobe can't get out the desktop versions of their software on the iPad Pro? [was: failed to get the 'real' work]

    Help! I have a session of really expensive iPad 128 GB Pro in front of me, but you guys have not released a full version of your Creative Suite like Photoshop and Illustrator applications. So, I can't do anything more drawing freehand with a pencil of Apple, surf the web, write emails, play games, etc.

    Your companion apps are great and all. But I want to do my work ON the iPad. I don't want to have to deal with the concern to understand what can be done on the iPad, and what I can do this only on Mac because I deal with the companion applications.

    You are geniuses. So are the guys at Apple. You both have had a long-standing relationship since the time that I first played with Photoshop in black and white on my Fat Mac (512 k). Why Adobe (and other software publishers, for that matter) cannot release their software on the iPad Pro versions of office?

    I know, I know. Experts say: ' just go buy a darn Mac already! But, look. That's life. People want to use the computing device they want to use. I mean, it's not as if Apple did not promote the iPad Pro as a desktop machine class. And, it's not like Adobe and Apple released were not closely related to decacdes...

    If you build it, they will come. Apple built the iPad Pro. People came and bought. A lot of them, actually. And, if you search the internet for it, you'll find a slew of messages and articles where people are clamboring for serious on the iPad Pro tools so that the promise of Apple class office can be achieved.

    Now, it's your turn, Adobe. Lead the charge! You have the resources. Build it now for we, the faithful, we move.

    p.s. Thanks for making of amazing tools that have helped feed me and put a roof over my head for decades, now. A lot of love.

    p.p.s. thank you for leting leads me.

    Hello

    Short story. An 'iPad Pro"have not enough power to run Adobe software as similar to the desktop computer.

    That said, some "desktop computer" not all have the ability to run software from Adobes 100% of their potential.

    You must "wind" in the Apple forums.

    Stone

  • Why I can not write in the contact form?

    I use the widget simple contact form. Unfortunately, when the site has been uploaded to the server, I can not write in the form.

    Anyone have an idea why?

    Thanks for the reply,

    Angelika

    Your page uses a 3rd party widget that adds some javascript to try to block the right mouse clicks - which interferes with by clicking on the form in firefox. I suggest you remove this widget or by contacting the promoter to see if they have an updated version that works with the forms of the Muse in firefox.

  • why I can't check on the box for motion scrolling effect?

    For some reason, I can't check in the query box. Do you know why and how can I fix?

    Screen Shot 2015-06-28 at 6.00.39 PM.png

    Just by your screenshot you have nothing selected to apply the scrolling of the effects. The effects of scrolling is available only when you select an element that supports them.

  • E - M5 Mark II: why LR6 can't work with the full 4:3 raw image for photos taken with a different aspect ratio?

    When you import raw, Olympus E - M1 or E - M10 images taken in different proportions to the native 4:3 sensor MFT format, LR will display the chosen as culture overlay to the full image captured by the sensor. This is very useful because in post processing time one can still control the exact position of the frame and change if necessary:

    lr6-oly.jpg

    I was very surprised to see that for the new E - M5 Mark 2 is not supported.

    The LR6 raw file exactly matches the image that was chosen during the shooting. 4:3 picture information are full present in the raw of the ORF file, which can be easily seen for example using Olympus Viewer.

    Is there a particular reason why this useful feature has been overlooked for E - M5 Mark II?

    Thank you

    Karsten

    Karsten, the Adobe engineer has just announced that the file you provided is actually the brand I don't have Mark II... or at least that's what shows the model name field in the EXIF data (which is what using LR, and therefore why you can see the complete data of pre cropped out). So, two possibilities:

    1. you have downloaded an older file (little likely, given the date of capture).

    2. your device is a brand I have, not a Mark II.

    3. you had already hacked the file to make it look like a brand, I have so that you could treat it in Lightroom before the release of LR6.

    What do you think?

  • Why firefox can not read all the videos I have youtube?

    I can't access all the youtube videos

    set firefox as default browser

  • Why I can not connect on the accounts of Firefox to put in place the synchronization? FF30 + keeps telling me how please enable cookies; cookies ARE enabled, already tried Safe Mode.

    Exactly what it says on the Tin.

    Why can't I connect to Firefox accounts to set up sync to my laptop? FF30 + keeps telling me how please enable cookies; cookies ARE enabled, and I already tried Safe Mode. This has happened since the new Sync has been set up, so I think that nearly 30 FF. I'm now up to 34 FF version and it still does not work. I was not able to sync from the "update".

    Problem #1: Going to about: accounts and clicking the Get Started button Blue opens a blank screen. It's not even a prompt on the cookies. It's just empty. Screen attached.
    It comes from before the modules are disabled. If they are disabled in Mode safe, we go to the #2 problem.

    #2 problem: I've skimmed a thread (https://github.com/mozilla/fxa-content-server/issues/1017) and I tried connecting to sync through accounts.mozilla.com instead, but if the screen does not turn white while the modules are always enabled, "Enable cookies" warning are as far as I can get. Go to about: accounts in Mode safe mode gives the same result. I deleted all my cookies and my cache, FF restarted several times with and without active modules and still nothing. I browsed this forum of support for similar issues, and while other people have the same problem, no other threads have been solved yet. Several later versions of FF, it is far too long for this question still unresolved... Screen attached.

    I know where the Firefox Cookie Manager, and I have enabled all settings. I was even able to third party cookies (even though I shouldn't really because they are unnecessary). No difference. Screen attached.

    I looked into: config and looked up the word 'cookie' in names, but even this is useless to me since I am not a programmer and so ignorant of what mean really all of these parameters. Screen attached.

    I'm at the end of my rope here, guys. It has been for months. A year. Maybe more than a year. I don't even remember. I just got a new camera and I don't want to add all my Firefox information one by one. It doesn't seem to be a way to contact Mozilla directly, so... Someone help please...

    Ensure that you allow cookies for the domain of the accounts.firefox.com if you are not allowing cookies generally or use the cookie setting 'Ask Me '.

    You can check whether DOM Storage is enabled.

  • Why firefox can not open with the default profile. It should be renamed?

    trying to install "malwarebytes" for extra protection, the Norton toolbar on firefox has been reduced in size by losing my option "Vault". This prompted reinstalling on securities Notion which then prevented the opening of firefox. Internet Explore works well but I use firefox for years so why change. Firefox won't open (even after being uninstalled and downloaded and reinstalled. The message 'your firefox profile cannot be loaded, etc.' following the instructions of your forum, I locate a profile with the word 'profile' embedded file. The word "profile" in the flow path is preceded by a weird name (such as a foreign name). Path =
    'C:\Users\Owner\AppData\Roaming\Mozilla\Firefox\Profiles\bzjajhor.default-1419035389504 '. This file needs to be renamed and can they?

    Please help me to go back to firefox. Thank you

    Do not rename a profile folder.
    It seems that there is a problem with the profiles.ini.

    See:

    This is usually caused by a problem with the file profiles.ini and the profile marked as the default value = 1 in this file is no longer present on the hard drive.

    • Windows: %AppData%\Mozilla\Firefox\
      C:\Users\ < user > < profile > \AppData\Roaming\Mozilla\Firefox\Profiles\.
    • Linux: ~/.mozilla/firefox/
    • Mac: ~/Library/Application Support/Firefox /.

    You can use one of them to make Firefox/reuse to create a new default profile:

    • Remove the profiles.ini file to force Firefox to create a new default profile
    • Use the Profile Manager to create a new profile
      Use "Choose a folder" when you create a new profile to select the location of a lost profile and recover this profile
  • Why I can not encrypt files, the option is grayed out?

    I'm trying to encrypt a folder and I right click on the folder, then I click on properties, then I click on advanced, but the option encrypt is obscured and I can't click on it. Why is this and how can I solve this problem?

    What version of Windows 7?

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/why-cant-i-encrypt-files-on-my-Windows-7-system/559de087-2144-E011-9767-d8d385dcbb12

  • Why I can't connect to the analytical Server

    I use the 9 system, analytical Server succeeded started.but I cannot connect to a server that is analytical and cannot create application, database... but can create variable, function, macro,
    the error log is described as:
    Analytical server: t3 com.essbase.eas.essbase.defs.ServerCommands.Connect November 13, 2008 12:14:35 PM CST
    Error: 1042003: [11001] network error: unable to locate [t3] in the Hosts file
    the server and the client installed in my computer, and deploy analytical server to share server via configuration untility, but why can not connect, so strange!

    Have you tried to connect to the server using the IP address instead of t3 analytical?

  • Why I can't scroll in the drop of bookmarks? It is used to scroll through, now it doesn't.

    I have a lot of bookmarks, and ones I use most frequently is at the top and bottom of the list. It can be a scroll bar on the side. It has now disappeared.

    You can do this without an extension through code in userChrome.css

    Add code to the file userChrome.css below default @namespace.

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the chrome folder in the Firefox profile folder.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    /* bookmarks: scroll bar */
    #appmenu_bookmarks scrollbox,
    #bookmarksMenuPopup scrollbox,
    #bookmarks-menu-button scrollbox,
    #PlacesToolbarItems scrollbox {overflow-y:auto!important}
    
    #appmenu_bookmarks autorepeatbutton,
    #bookmarksMenuPopup autorepeatbutton,
    #bookmarks-menu-button autorepeatbutton,
    #PlacesToolbarItems autorepeatbutton {display:none!important}
    
    /* list all tabs: scroll bar */
    #alltabs-popup scrollbox {overflow-y:auto!important}
    
    #alltabs-popup .autorepeatbutton-up,
    #alltabs-popup .autorepeatbutton-down {display:none!important}
  • Why I can't post in the forums with Firefox 20?

    I tried to post in this forum http://www.renderosity.com/mod/forumpro/index.php , but for some reason any that is not letting me. I can post with other browsers, but not with my browser Firefox 20.0. Y at - it tips or advice I can try? I tried to clear the cache and history. I tried to reinstall Firefox. Thanks for any help.

    In fact, I didn't even that 1 has been installed. He prob snuck with something else.

  • why I can't open all the links on my Outlook email which opened for years?

    I recently had an Ipad and installed and added Icloud email that goes into my outlook account.  I don't know if this has nothing to do with my problem today... I can't open all links... even my own site in my SIG... but I can get it on Internet Explorer and access all the sites.  Whey, I try the X comes up saying "my computer is preventing access," so what can I do to just do the basics to click on a link or address email and go directly to it as I always have?

    Hello

    Check out the link and follow the steps to solve the problem.
    Hyperlinks do not work in Outlook Express or in Word
    http://support.Microsoft.com/kb/823301
  • Why I can not sound with the guitar utube

    When I connect utube I get no audio, the video is fine but no sound?

    Check the following:

    * the volume control on the Panel of movie from YouTube is not cut

    * you have the latest version of Flash

    * your browser options are not defined, so that it can not play the sound to a web page

    * volume control in the playback of your console part is not cut, or that the sliders are not zero

    * your audio drivers are up to date (and not through MS Update, but from the website of the manufacturer of the PC/laptop)

    See you soon,.

    Jerry

  • Monopoly Tycoon - why I can't play with the music?

    Hello everyone,

    The game, Monopoly Tycoon, seems to have a problem where it will crash on Windows Vista and more if the game goes to play music. If the music is turned off, the game will run very well.

    The thing is, I would like to have the music of the game. The music is meant to be the 'tone' of the present age that you play in, and take it again lost of nostalgia to start.

    It looks like it should be a really simple solution - sounds work very well, but music (WMA format), will crash the game for some reason any. I can play the music in windows media player very well, said by the way.

    Can anyone suggest a solution that doesn't involve turning off the music or play any music loop in the background with a media player?

    Thank you!

    So here's how I did this work under my 8.1 Windows Installer.

    1. install the free vmware player.

    2. install Windows xp in a virtual macine on ure computer current 40 gig is good

    3 install the software to mount the .bin file and install the game

    4 fun playing the game by using the windows xp vmware player full screen.

    even the sound and music work like a charm, and you can return to your windows desktop 7 or 8.1 in a few seconds.

Maybe you are looking for