Re: [Interest] Distance from point to path.

2015-12-28 Thread Nye
Hello, What kind of primitives do you have in your path, lines? If so, you could "parse" the path by elements and get the normal vectors for each one line, and check if they (could) pass through your point and at what distance the point is. If you have curves that might be quite more involved. Is y

[Interest] AA_DontUseNativeMenuBar and QCocoaMenu::insertNative()

2015-12-28 Thread René J . V . Bertin
Hi, What is the current effect of Qt::AA_DontUseNativeMenuBar in Qt 5.5, and is it to be expected that QCocoaMenu::insertNative() is called when the AA_DontUseNativeMenuBar has been set? I'm seeing 2 undesirable effects: 1) the Mac-style toplevel menubar remains visible in addition to an in-win

[Interest] Distance from point to path.

2015-12-28 Thread william.croc...@analog.com
Hello: Given a QPoint and a QPainterPath. How do I find the distance from the QPoint to the closest point along the QPainterPath. I could step along the path with pointAtPercent looking for the closest point, but that seems unduly expensive: O(100N). Any better ideas. Thanks. Bill -

[Interest] doEvents() for QML?

2015-12-28 Thread Jason H
I have a C++ set of functions where I open(), pump() /*n times*/, close(). I have the QML UI thread do the pumping because I want to update a status bar. It's the only thing that the app is doing (and should be doing), so I'm not worried about the UI being jittery. Previously in C++/Widgets, I c