Thanks.
I'm stuck with QT 4.8.5 at the moment so QStandardPaths is not
available, but I could use QDesktopServices instead, e.g.:
QtGui.QDesktopServices.storageLocation(QtGui.QDesktopServices.HomeLocation)
What would be the difference to os.path.expanduser('~') though?
Cheers,
frank
On
> On 2 Feb 2017, at 18:02, Jason H wrote:
>
> When will QML get proper async/await support? I'm not using Promises, since
> my callback hell is manageable, but I do look forward to async/await.
> ___
> Interest mailing list
>
may be its better for you to switch on something pure JS?
JS in Qt/QML just for non performance sensitive small peaces of code
If your main logic based on ECMAScript, its non optimal from Qt's
perspective
On Thu, Feb 2, 2017 at 7:54 PM, Jason H wrote:
> Yes, I know that. I do
Yes, I know that. I do that regularly.
But AJAX and the LocaStorage are both async in nature. My apps make heavy use of both APIs. Having Ecmascript async/await support is desired, and becoming very popular.
Sent: Thursday, February 02, 2017 at 1:26 PM
From: "Vlad Stelmahovsky"
In C++. you can always fallback to C++ from QML
On Thu, Feb 2, 2017 at 7:24 PM, Jason H wrote:
> In QML?
>
> *Sent:* Thursday, February 02, 2017 at 1:21 PM
> *From:* "Vlad Stelmahovsky"
> *To:* "Jason H"
> *Cc:*
In QML?
Sent: Thursday, February 02, 2017 at 1:21 PM
From: "Vlad Stelmahovsky"
To: "Jason H"
Cc: "interestqt-project.org"
Subject: Re: [Interest] QML async/await support?
QThread, QConcurrent, QEventLoop etc?
On Thu,
When will QML get proper async/await support? I'm not using Promises, since my
callback hell is manageable, but I do look forward to async/await.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
2017-02-02 12:51 GMT+01:00 Elvis Stansvik :
> 2017-02-02 11:39 GMT+01:00 Elvis Stansvik :
>> 2017-02-02 11:23 GMT+01:00 Elvis Stansvik :
>>> WIth the following minimal example:
>>>
>>> #include
>>> #include
>>> #include
>>> #include
2017-02-02 11:39 GMT+01:00 Elvis Stansvik :
> 2017-02-02 11:23 GMT+01:00 Elvis Stansvik :
>> WIth the following minimal example:
>>
>> #include
>> #include
>> #include
>> #include
>>
>> int main(int argc, char *argv[])
>> {
>> QApplication app(argc,
2017-02-02 11:23 GMT+01:00 Elvis Stansvik :
> WIth the following minimal example:
>
> #include
> #include
> #include
> #include
>
> int main(int argc, char *argv[])
> {
> QApplication app(argc, argv);
>
> QStandardItemModel model(3, 2);
>
WIth the following minimal example:
#include
#include
#include
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QStandardItemModel model(3, 2);
model.setHorizontalHeaderLabels({ "Header 1", "Header 2" });
for (int row = 0; row < 3; ++row) {
11 matches
Mail list logo