[Interest] JS numbers to qint64
Shantanu Tushar
shaan7in at gmail.com
Wed Jul 12 11:53:39 CEST 2017
Hi,
I'm trying to call a slot which accepts a qint64 as an argument-
class Foo : public QObject
{
Q_OBJECT
public slots:
void open(qint64 id) {
qDebug() << "Opening" << id;
}
};
from QML-
onClicked: {
console.log("Opening " + userId);
foo.open(userId);
}
and I see this output-
qml: Opening 5762702576189441
Opening 5762702576189442
As you can see the number changes. What am I doing wrong?
--
Shantanu Tushar (UTC +0530)
shantanu.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170712/a98786aa/attachment.html>
More information about the Interest
mailing list