Ask / Submit

App rejected from Harbour [answered]

asked 2017-09-13 19:28:26 +0300

Edz gravatar image

updated 2017-09-13 19:29:03 +0300

I uploaded an app to Harbour a few days ago, I received confirmation today that my app was rejected for a short list of reasons. I have since fixed those errors and uploaded to Harbour again.

One of the reasons my app got rejected was for using org.nemomobile.time module, which is not allowed in Harbour. This module is (from what I can see) responsible for displaying/keeping time on the device, but I've removed it from my app, but would really like to reinstate a clock back into my app.

How else can the current time be displayed without calling on org.nemomobile.time 1.0?, is this at all possible?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Edz
close date 2017-09-13 20:23:48.680249

1 Answer

Sort by » oldest newest most voted

answered 2017-09-13 20:03:36 +0300

Dylan Van Assche gravatar image

updated 2017-09-13 20:03:50 +0300

It's available in QT Core:

I use the variant that provides a full timestamp (date + time) and it works perfectly.

edit flag offensive delete publish link more



Thank you @Dylan Van Assche...... twice!

Sorted, with your tip and my example below, I now have date/time in real time, thank you!

Could you possible show me an example of your usage/how you implement it?

Would this be what you're referring to?

import QtQuick 1.0

Item {
    Timer {
        interval: 500; running: true; repeat: true
        onTriggered: time.text = Date().toString()

    Text { id: time }
Edz ( 2017-09-13 20:13:22 +0300 )edit

@Dylan Van Assche - I'm not having a much luck producing a just a clock. my above example only shows the entire date including a GMT label, the whole thing is right across the top of the screen.

I'd still appreciate an example of how you use qtime.....perhaps my example above is not what you meant?

Edz ( 2017-09-13 21:27:18 +0300 )edit

QTime is a C++ class only. If you want to do stuff only in QML you can use Javascript Date() functions:

var date = new Date();
Dylan Van Assche ( 2017-09-13 21:35:33 +0300 )edit

Thank you @Dylan Van Assche - I must be going senile already. Checking back through patches I've found a solution I'd already created - I was under the impression that my creation must include org.nemomobile,time but it shows me now that it doesn't.

The example you gave above, jogged my ailing memory, thank you!, this time, I've GOT IT! ;)


Edz ( 2017-09-13 22:10:20 +0300 )edit

Question tools



Asked: 2017-09-13 19:28:26 +0300

Seen: 401 times

Last updated: Sep 13