[Interest] Scene graph custom component with dynamic pieces

2018-11-02 Thread Nathan Frana
All, I'm a bit of a Qt novice but I have been working on a custom gauge with a dynamic number of ticks, all drawn in updatePaintNode. The Node hierarchy is like this: QSGNode (root/old node) --> QSGGeometryNode (Background) --> QSGGeometryNode (Border/Edge) --> QSGNode (Tick Container) ->

Re: [Interest] QDateTime and std::chrono

2018-11-02 Thread Giuseppe D'Angelo via Interest
Il 02/11/18 20:51, Tomasz Siekierda ha scritto: UTC time, according to docs https://doc.qt.io/qt-5/qdatetime.html#toMSecsSinceEpoch So you need C++2a's std::chrono::utc_clock, not C++11's system_clock. Cheers, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB

Re: [Interest] QDateTime and std::chrono

2018-11-02 Thread Tomasz Siekierda
On Fri, 2 Nov 2018 at 17:51, Giuseppe D'Angelo via Interest wrote: > Last, but not least, note that std::system_clock is a Unix clock only > starting in C++2a; before you had no guarantees. Does anyone know if > QDateTime::toMSecsSinceEpoch() returns UTC time or Unix time? > UTC time, according

Re: [Interest] Qt API annoyances: where to log/discuss?

2018-11-02 Thread Jason H
> > The bitwise OR operator, descending multiple namespaces. > > It makes my point. That these very common functional programming paradigms > > (map, reduce, etc) are (needlessly?) obtuse in C++. > > Sorry, what is the point? Is it hard to read, write, teach, learn, > understand, extend...?

Re: [Interest] Qt 5.12.0 beta 3 OSX resource problem?

2018-11-02 Thread ekke
have built and run some complex QQC2 Apps with Qt 5.12Beta3 + QtC 4.7.2 on Android, iOS, macOS -> works well my only problem is with release builds where QtQuickCompiler is enabled: translations are broken (https://bugreports.qt.io/browse/QTBUG-71553) just have tried new empty QtQuick Application

Re: [Interest] QDateTime and std::chrono

2018-11-02 Thread Giuseppe D'Angelo via Interest
Hi, Il 02/11/18 16:40, Jérôme Godbout ha scritto: Maybe you can pass by a string, this would be highly inefficient but could be simple enough. I guess you should make the time into UTC too. You could use QString to std::string for the string stream. And do the following: std::tm tm = {};

[Interest] Qt 5.12.0 beta 3 OSX resource problem?

2018-11-02 Thread First Last
Hi, I’ve installed Qt 5.12.0 beta 3 twice now (also tried beta 2), and I always see the same error: QQmlApplicationEngine failed to load component qrc:/main.qml:-1 No such file or directory To reproduce, create a new empty Qt Quick Application using Qt Creator, build and run it. I tried

Re: [Interest] QDateTime and std::chrono

2018-11-02 Thread Jérôme Godbout
Hi, Maybe you can pass by a string, this would be highly inefficient but could be simple enough. I guess you should make the time into UTC too. You could use QString to std::string for the string stream. And do the following: std::tm tm = {}; std::stringstream ss("Jan 9 2014 12:35:34"); //

[Interest] 5.11.0 documentation build bug?

2018-11-02 Thread roland
All, Following the instructions from here: https://wiki.qt.io/Building_Qt_Documentation I tried to make the documentation so QtCreator would have it. Yes, most people just install the Linux distro version hoping it isn't too far away from what they are using, but, I opted to build and

Re: [Interest] [Qt-creator] Qt 5.12 Beta 3 showstopper: ts wrong for release builds w QtQuickCompiler

2018-11-02 Thread ekke
created this bug https://bugreports.qt.io/browse/QTBUG-71553 to get correct translation with Qt 5.12 Beta3 I must uncheck QtQuickCompiler for Release Builds for some of my projects this is a showstopper ekke Am 01.11.18 um 12:15 schrieb ekke: > Am 01.11.18 um 12:12 schrieb ekke: >> just found

[Interest] QDateTime and std::chrono

2018-11-02 Thread Roger Leigh
Hi folks, Is there any recommended way to convert a QDateTime to a std::chrono::timepoint? I'd like to take the value of QFileInfo::lastModified() and pass it to an interface using e.g. std::chrono (or nanoseconds). However, making this work portably, including all the epoch and leap