Re: [Interest] using QSetting when host application is using it as well

2017-02-02 Thread Frank Rueter | OHUfx
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

Re: [Interest] QML async/await support?

2017-02-02 Thread Samuel Gaist
> 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 >

Re: [Interest] QML async/await support?

2017-02-02 Thread Vlad Stelmahovsky
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

Re: [Interest] QML async/await support?

2017-02-02 Thread Jason H
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"

Re: [Interest] QML async/await support?

2017-02-02 Thread 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:*

Re: [Interest] QML async/await support?

2017-02-02 Thread Jason H
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,

[Interest] QML async/await support?

2017-02-02 Thread Jason H
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

Re: [Interest] QTreeView::resizeColumnToContents not accurate enough

2017-02-02 Thread Elvis Stansvik
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

Re: [Interest] QTreeView::resizeColumnToContents not accurate enough

2017-02-02 Thread 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 >> >> int main(int argc, char *argv[]) >> { >> QApplication app(argc,

Re: [Interest] QTreeView::resizeColumnToContents not accurate enough

2017-02-02 Thread 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, argv); > > QStandardItemModel model(3, 2); >

[Interest] QTreeView::resizeColumnToContents not accurate enough

2017-02-02 Thread 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); model.setHorizontalHeaderLabels({ "Header 1", "Header 2" }); for (int row = 0; row < 3; ++row) {