import org.nemomobile.calendar fails

asked 2018-03-30 21:45:40 +0300

FloR707 gravatar image

updated 2018-04-04 18:05:10 +0300

Hi,

I would like to create an entry in my calendar through my app. I found this example online, which I believe is the right way to do it. But import statement already fails. I installed the nemo-qml-plugin-calendar-qt5 package but I get an error that the plugin could not be found. Under the search URL I found a folder with a calendar/qmldir file inside.

I am guessing that I am missing something. How can I use calendar API from inside QML?

[update]

The author of the example was so kind to expand the readme file and explain a bit more in detail how it has to be used. The missing plugin.qmltypes can be found here.

To work on the emulator you need some kind of example calendar. I have not figured out how to get that working.

edit retag flag offensive close delete

Comments

Very cool, I was looking for sth like this. Thanks.

michfu ( 2018-04-06 14:37:06 +0300 )edit

If you figure it out how it really works please share! I cannot get it to work in my app or the example due to several sqlight errors.

FloR707 ( 2018-04-06 20:38:54 +0300 )edit

Did you try it on a real device or just the emulator?

michfu ( 2018-04-08 11:21:34 +0300 )edit

Both. On the emulator it fails because you need a calendar and on the phone I got several errors connecting to the database behind the calendar. Also the API is not allowed to be used in harbour apps. Totally forgot to check the list of available APIs first.

FloR707 ( 2018-04-08 11:38:35 +0300 )edit

On the emulator I browsed the calendar database with sqlite3 and found two calendars (Default, Brithdays). So it should be possible to manipulate events also on emulator.

michfu ( 2018-04-09 11:18:24 +0300 )edit