Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Jason H
> Sent: Tuesday, May 07, 2019 at 9:31 AM > From: "Giuseppe D'Angelo via Interest" > To: interest@qt-project.org > Subject: Re: [Interest] Operator QMap[] is casting to int? > > On 07/05/2019 14:42, Jason H wrote: > >> Those will likely change t

Re: [Interest] My first 5 years with Qt and 2 suggestions

2019-05-09 Thread Jason H
> Sent: Wednesday, May 08, 2019 at 8:09 PM > From: "Henry Skoglund" > To: interest@qt-project.org > Subject: [Interest] My first 5 years with Qt and 2 suggestions > > Hi, 5 years ago I started with Qt, it's been a very nice ride, thank > you! Looking forward to the next 5. Got 2 suggestions: >

Re: [Interest] Operator QMap[] is casting to int?

2019-05-10 Thread Jason H
Hi all, I'm really sorry I brought this up. I have been working with smaller things thanks size_t. I was wrong in the general case. You can do a data structure of 16gB using the range of signed indexes for doubles. That should plenty. I do still miss the python negative syntax though. [-1] and

Re: [Interest] QFile/QDir: force move mode only?

2019-05-14 Thread Jason H
I'd rather static bool QFile::isAtomicRename(const QString &source, cont QString &dest); So that the software can plan accordingly. Blindly executing won't allow the software to accomodate non-atomic renames (i.e. Display an alternate UI). It would also be nice if there was an atomic-esque non-a

Re: [Interest] QFile/QDir: force move mode only?

2019-05-14 Thread Jason H
> Sent: Tuesday, May 14, 2019 at 10:15 AM > From: "Giuseppe D'Angelo via Interest" > To: interest@qt-project.org > Subject: Re: [Interest] QFile/QDir: force move mode only? > > Hi, > > On 14/05/2019 15:47, Jason H wrote: > > I'd rather stati

[Interest] Simple Starting PySide2 Questions

2019-05-21 Thread Jason H
In preparing to use PySide2, I have several questions. Please feel free to direct me to proper resources, if I missed them. 1. According to https://wiki.qt.io/Qt_for_Python#Frequently_Asked_Questions , - Embedded is not supported, with Raspberry Pi specifically called out. Why are these platform

[Interest] X11->XQuartz compatability?

2019-06-14 Thread Jason H
I have a application running on an Ubuntu 16.04 Box. I want to get the window on my Mac. I installed XQuartz and Inkscape and xeyes work. But when I launch my Qt app, I get: libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Unrecognized OpenGL version

[Interest] Problem with cv::Mat grayscale to QImage

2019-06-20 Thread Jason H
Simple code: cv::Mat left_image = cv::imread(filename, cv::IMREAD_COLOR ); cv::cvtColor(mat, mat, cv::COLOR_BGR2GRAY); cv::imwrite("dummy_gray_cv.png", left_image); // ok QImage test((unsigned char*) left_image.data, left_image.cols, left_image.rows, QImage::Format_Grayscale8); test.save("dummy_g

Re: [Interest] Problem with cv::Mat grayscale to QImage

2019-06-21 Thread Jason H
That indeed seems to be the case. But this is very interesting for Grayscale. RGB888 is fine. Maybe this is more a OpenCV question, why would the BPL not equal pixels per line?   Many thanks to all who replied.   Sent: Thursday, June 20, 2019 at 5:33 PM From: "René Hansen" To: &qu

Re: [Interest] Problem with cv::Mat grayscale to QImage

2019-06-21 Thread Jason H
It seems that there is some word/dword/byte-alignment magic going on and the skew is proportional to that.    Sent: Friday, June 21, 2019 at 9:40 AM From: "Jason H" To: "René Hansen" Cc: "interestqt-project.org" Subject: Re: [Interest] Problem with cv::Mat grays

Re: [Interest] QEventLoop ::hasPendingEvents() replacement?

2019-06-26 Thread Jason H
Can't you use a QRunnable / QThreadPool with maxThreadCount=1? > Sent: Wednesday, June 26, 2019 at 1:58 AM > From: "Fabrice Mousset | GEOCEPT GmbH" > To: "Thiago Macieira" , "interest@qt-project.org" > > Subject: Re: [Interest] QEventLoop ::hasPendingEvents() replacement? > > Hi Thiago, > > t

Re: [Interest] X11->XQuartz compatability?

2019-06-28 Thread Jason H
; Sent: Friday, June 14, 2019 at 10:50 AM > From: "Konstantin Tokarev" > To: "Jason H" , "interestqt-project.org" > > Subject: Re: [Interest] X11->XQuartz compatability? > > > > 14.06.2019, 17:45, "Jason H" : > > I have a

Re: [Interest] X11->XQuartz compatability?

2019-07-08 Thread Jason H
number of failed request: 21 Current serial number in output stream: 23 > Sent: Friday, June 28, 2019 at 10:42 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] X11->XQuartz compatability? > > On Friday, 28 June 2019 08:25:12

Re: [Interest] Battery status and info

2019-07-10 Thread Jason H
No. I had to write my own JNI api. Curiously, for iOS, the ideviceinfo binary can give you more than the device itself.   Sent: Wednesday, July 10, 2019 at 9:45 AM From: "Jérôme Godbout" To: "Interest@qt-project.org" Subject: [Interest] Battery status and info Hi, Is there any Qt API (I did

Re: [Interest] Battery status and info

2019-07-11 Thread Jason H
uot;Jérôme Godbout" To: "Jason H" Cc: "Interest@qt-project.org" Subject: RE: [Interest] Battery status and info Hi, Thanks for the info, how do you use the ideviceinfo? Can I monitor the battery with my iOS application with it? or is it run from desktop for an attach

Re: [Interest] Battery status and info

2019-07-11 Thread Jason H
PS. You may want to participate in https://bugreports.qt.io/browse/QTBUG-74049   if you aren't already.   Sent: Thursday, July 11, 2019 at 10:10 AM From: "Jason H" To: "Jérôme Godbout" Cc: "Interest@qt-project.org" Subject: Re: [Interest] Battery status a

[Interest] Lar's Technical Vision blog post

2019-08-13 Thread Jason H
https://blog.qt.io/blog/2019/08/07/technical-vision-qt-6/ I am wondering if there will be a follow up or response thread? There's a lot of good feedback. It was good to see inside Lars's head, and what is not. I think he got a lot right, thought I'm scratching my head on the AI comment. There's

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Jason H
> Sent: Friday, August 23, 2019 at 7:02 PM > From: "Giuseppe D'Angelo via Interest" > To: interest@qt-project.org > Subject: Re: [Interest] Q_NAMESPACE is not portable? > > On 24/08/2019 00:10, Matthew Woehlke wrote: > > Am I doing something wrong, or is it impossible to use Q_NAMESPACE > > corr

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Jason H
figure out what it was...     Sent: Monday, August 26, 2019 at 12:14 PM From: "Andy" To: "Giuseppe D'Angelo" Cc: "Jason H" , "Qt Project" Subject: Re: [Interest] Q_NAMESPACE is not portable? Not trying to start a "thing", b

Re: [Interest] Qt 5.13.1

2019-08-28 Thread Jason H
I suggest joining the Releasing email list https://lists.qt-project.org/mailman/listinfo/releasing As that is extremely low volume and contains all the info you would need. "Highly Recommend, *, would subscribe again!" > Sent: Tuesday, August 27, 2019 at 2:21 PM > From: "ekke" > To: "intere

Re: [Interest] Click and hold on close button

2019-08-30 Thread Jason H
> ... > Replace "thread" with "process" and it correctly matches what Chrome does and > what would work on Qt. > > You cannot start another QApplication in another thread in the same process. > And that's also not what Chrome does. https://i.imgur.com/CDqD1KV.jpg - How I imagine Thiago right now.

[Interest] Qt6 image size limitations?

2019-09-04 Thread Jason H
I know the current limits are 32kx32k, which ought to be good enough for anybody 10 years ago. But as displays creep to 8k, that's 4x the width and 8x the height of a 8k monitor. My current situation, I am looking at 50kx1k ARGB images, which is only 200MB in-memory. The display size is 2-4k, b

Re: [Interest] QML and sensitive data

2019-09-05 Thread Jason H
> Is there any mechanism for cleanup sensitive data like passwords etc > from QML? This issue is that gc() doesn't seem to even nullify memory > (at least in release on Windows) so all the sensitive information > stays in memory. My recommendation would be to use a library that has proper storage

Re: [Interest] QML and sensitive data

2019-09-05 Thread Jason H
> On Wednesday, 4 September 2019 16:20:44 PDT Alexander Ivash wrote: > > Thank you for fast response, but my question is purely about QML. On > > C++ side I have a lot of ways for nullifying / erasing sensitive > > information *after* it is not needed (let say after particular QML > > screen gets'

Re: [Interest] QML and sensitive data

2019-09-10 Thread Jason H
> Sent: Monday, September 09, 2019 at 5:35 PM > From: "Alexander Ivash" > To: "interestqt-project.org" > Subject: Re: [Interest] QML and sensitive data > > Just in case if someone will be looking for solution - I've managed to > eliminate all the sensitive data from memory on closing particular

Re: [Interest] Using QCamera on a QML VideoOutput

2019-09-10 Thread Jason H
> Sent: Tuesday, September 10, 2019 at 11:35 AM > From: "Nuno Santos" > To: "interestqt-project.org" > Subject: [Interest] Using QCamera on a QML VideoOutput > > Hi, > > I’m learning for the first time about Qt Multimedia Video capabilities and > API. > > I’ve been looking to the declarative

[Interest] Why I still prefer widgets...

2019-09-10 Thread Jason H
ComboBox { anchors { top: parent.top right: parent.right } model: Object.keys(Data.imeis) // and IMEI is 15 characters long } I feel like when I did this with widgets, the combobox, if set to preferred (default) would size itself to fit the content. But in QML I get el

[Interest] iPadOS Support

2019-09-11 Thread Jason H
https://www.theverge.com/2019/9/10/20859208/apple-ipados-ipad-os-september-30-release-date-install-air-pro-mini I'm assuming this will be supported? By which Qt version? ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listi

Re: [Interest] Why I still prefer widgets...

2019-09-13 Thread Jason H
  By defualt, it is actively making the wrong decision. I only set the top and right anchor lines.    QTBUG-78281       Sent: Tuesday, September 10, 2019 at 3:06 PM From: "Furkan Üzümcü" To: "Giuseppe D'Angelo via Interest" , "Jason H" Subject: Re: [Int

Re: [Interest] mac app crashes if you plug in another monitor

2019-09-16 Thread Jason H
I too was suprised by Vadim's reply. Often there is a dicsussion here before deciding it is a bug or operator error or something else. Vadim's suggested use of going straight to the bug tracker does not seem to fit with the purpose of this list.    FWIW, I am on mac (2016 MBPro) with two externa

[Interest] QByteArray vs QString, arg, why is there no arg()?

2019-09-18 Thread Jason H
Shiver me timbers! I often find myself using QString::arg() overloads for formatting, but nothing like that exists for when I'm working with just bytes, say for a socket or serial port. So I find myself constructing it as a QString and then .toLocal8bit() , which just seems wasteful. What's th

Re: [Interest] QByteArray vs QString, arg, why is there no arg()?

2019-09-18 Thread Jason H
> Sent: Wednesday, September 18, 2019 at 2:50 PM > From: "Giuseppe D'Angelo via Interest" > To: interest@qt-project.org > Subject: Re: [Interest] QByteArray vs QString, arg, why is there no arg()? > > Il 18/09/19 13:16, Jason H ha scritto: > > What&

[Interest] 3D-Touch iOS in QML?

2019-09-25 Thread Jason H
I realize that there was a thread about this not too long ago, and back in March a request was added to https://bugreports.qt.io/browse/QTBUG-74049 for 3DTouch support. I am now in a situation where I need to add 3D touch(*) to an QML app, and I figure people lay already have done it and know h

Re: [Interest] QPainter drawLine zValue?

2019-09-25 Thread Jason H
> Sent: Wednesday, September 25, 2019 at 3:06 PM > From: "Israel Brewster" > To: "Giuseppe D'Angelo" > Cc: interest@qt-project.org > Subject: Re: [Interest] QPainter drawLine zValue? > > On Sep 25, 2019, at 10:55 AM, Giuseppe D'Angelo via Interest > wrote: > > > > Il 25/09/19 19:13, Israel B

[Interest] StateMachine questions

2019-10-07 Thread Jason H
I'm reading up about the state machine stuff and was wondering how I would go about having X tests with the same Y steps. Unlike parallel states, these are still sequential: State / SubState TEST_1 / PREPARE TEST_1 / PREPARE_COMPLETE TEST_1 / EXECUTE TEST_1 / EXECUTE_COMPLETE TEST_1 / RESULT TE

Re: [Interest] Licensing questions for iOS and Android

2019-10-08 Thread Jason H
> I hope to hear expert opinions on the following. > > Let's say the company has 10 developers who develop a Mobile app for > consumer phones. > > 2 persons use *Mac* to make the app work on iOS (static linking!). > Another 2 persons work from PCs on supporting Android specifics > (shared linking).

[Interest] import sitecustomize fails 5.12.4, OSX

2019-10-08 Thread Jason H
I'm stuck in XCode hell. I upgraded XCode because I needed to work with a iPhone 11 (iOS 13), which required me to install XCode 11, which created issues. I started a new project and got: 11:27:26: Starting: "/usr/bin/make" clean -j4 'import sitecustomize' failed; use -v for traceback Traceback

Re: [Interest] import sitecustomize fails 5.12.4, OSX

2019-10-08 Thread Jason H
This part is still true: > I'm stuck in XCode hell. I upgraded XCode because I needed to work with a > iPhone 11 (iOS 13), which required me to install XCode 11, which created > issues. I started a new project and got: > 11:27:26: Starting: "/usr/bin/make" clean -j4 > 'import sitecustomize' fail

[Interest] No 5.12.5 for OSX?

2019-10-10 Thread Jason H
Has any Mac user updated via the Maintenance tool to use 5.12.5? I'm getting "No update available."___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] No 5.12.5 for OSX?

2019-10-11 Thread Jason H
ber 11, 2019 at 8:05 AM > From: "Nelson, Michael" > To: "Jason H" , "interestqt-project.org" > > Subject: RE: [Interest] No 5.12.5 for OSX? > > Yes, completed an update to 5.12.5 on mac running macOS 10.14.6 with no > troubles. > > Mik

Re: [Interest] No 5.12.5 for OSX?

2019-10-11 Thread Jason H
Nevermind. I Ran "first aid" and it got my purgeable from 150GBish back down to 2. > Sent: Friday, October 11, 2019 at 3:11 PM > From: "Jason H" > To: "Nelson, Michael" > Cc: "interestqt-project.org" > Subject: Re: [Interest] No 5.12.

[Interest] iOS device volume control on iOS 12+ with Qt

2019-10-16 Thread Jason H
This solution had been working for me: https://stackoverflow.com/questions/50737943/how-to-change-volume-programmatically-on-ios-11-4/50740074#50740074 But it seems that I can't get away with an MPVolumeView anymore. However the proposed solution isn't working for me as I am not sure how to patch

Re: [Interest] iOS device volume control on iOS 12+ with Qt

2019-10-16 Thread Jason H
... > Sent: Wednesday, October 16, 2019 at 3:43 PM > From: "Jason H" > To: "interestqt-project.org" > Subject: [Interest] iOS device volume control on iOS 12+ with Qt > > This solution had been working for me: > https://stackoverflow.com/questions/50737943/how-to-c

[Interest] iOS preferredScreenEdgesDeferringSystemGestures

2019-10-17 Thread Jason H
I am trying to use this function but don't know how to integrate it with Qt. I want my user to be able to do a full vertical stroke on the display without bring the notification center down. https://developer.apple.com/documentation/uikit/uiviewcontroller/2887512-preferredscreenedgesdeferringsys

[Interest] Help wanted for iOS Lux sensor reading

2019-10-28 Thread Jason H
I've attempted to engage the proper channels but they have not been helpful. I have an urgent need to read the lux sensor in iOS. This should be possible per the iPhoneDevWiki (accepting all caveats): http://iphonedevwiki.net/index.php/AppleISL29003 http://iphonedevwiki.net/index.php/IOHIDFamily

Re: [Interest] QUdpSocket, QNetworkDatagram and QNetworkInterface

2019-10-29 Thread Jason H
I don't think any of that is Qt. You can bind to a specific interface, but if you use Any, then it's up to the kernel which uses the routing tables and the "metric". # route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface default my.mer

Re: [Interest] QUdpSocket, QNetworkDatagram and QNetworkInterface

2019-10-30 Thread Jason H
I think you're running into a NAT router (network address translation) You can configure your router to not do this, but that requires you to have an addressable network. NAT is generally used with cable modems because you only get the IP pf the modem. Then the kernel on the router takes care of

Re: [Interest] QUdpSocket, QNetworkDatagram and QNetworkInterface

2019-10-30 Thread Jason H
Relevant RFCs: https://tools.ietf.org/html/rfc2663 (1999 most popular) https://tools.ietf.org/html/rfc1631 (1994) https://tools.ietf.org/html/rfc3022 (2001) > Sent: Wednesday, October 30, 2019 at 9:23 AM > From: "Jason H" > To: "Nuno Santos" > Cc: "Thiag

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Jason H
Very simply, you don't have to repaint the entire thing every time. You can paint the squares, then fill them in one by one. You're essentiallt re-drawing over already dorawn pixels.     Sent: Thursday, October 31, 2019 at 11:42 AM From: "Alexander Dyagilev" To: "interest@qt-project.org" Su

[Interest] Curious QNetworkAccessManager behavior.

2019-10-31 Thread Jason H
I'm uploading files with QNAM. QFile *file = new QFile(QString("%1/%2/%3").arg(_dataDir).arg(SERVER_SYNC_DIR).arg(filename)); if (file->open(QIODevice::ReadOnly)) { QNetworkRequest req(QUrl(QString("%1/%2/%3").arg(_serverUrl.toString()).arg("post").arg(filename))); req.setHeader(QNetworkRequest::

Re: [Interest] Curious QNetworkAccessManager behavior.

2019-11-01 Thread Jason H
lid QMetaObject::Connection. Regards, Tony   On 1/11/2019 11:21 am, Jason H wrote: I'm uploading files with QNAM. QFile *file = new QFile(QString("%1/%2/%3").arg(_dataDir).arg(SERVER_SYNC_DIR).arg(filename)); if (file->open(QIODevice::ReadOnly)) { QNetworkRequest req(QUrl(QString(&q

[Interest] Help, I'm in QML signal hell

2019-11-01 Thread Jason H
I am using signals/slots in QML and the signal emissions are getting inverted. Here's my example: bool Socket::emitSignalForOp(const QByteArray &) "STF10" 10 bool Socket::emitSignalForOp(const QByteArray &) "PSF09" 11 STF10 necessarily comes after PSF09. In wall-clock time it does. But Qt is not

Re: [Interest] Help, I'm in QML signal hell

2019-11-04 Thread Jason H
ve passed function 9 (PSF09). Passing 9 is what starts 10. > Sent: Friday, November 01, 2019 at 11:45 AM > From: "Giuseppe D'Angelo via Interest" > To: interest@qt-project.org > Subject: Re: [Interest] Help, I'm in QML signal hell > > Il 01/11/19 17:

[Interest] QML Video: keep last frame up

2019-11-04 Thread Jason H
Very simply, I want to keep the last frame of video up (preferably without having to delve into C++). But when the video finishes, it disappears. I tried Window { id: root visible: true width: 640 height: 480 title: qsTr("Hello World") Component.onCo

Re: [Interest] QML Video: keep last frame up

2019-11-04 Thread Jason H
Nevermind. Slow start on a monday: https://stackoverflow.com/questions/21138824/how-to-pause-video-on-last-frame-in-qml > Sent: Monday, November 04, 2019 at 11:51 AM > From: "Jason H" > To: "interestqt-project.org" > Subject: [Interest] QML Video: keep last fra

[Interest] Debug messages to socket on iOS

2019-11-06 Thread Jason H
I want to add logging of all messages that appear in the application output pane of QtC. For non-QML this can be gone by qInstallMessageHandler() but I am not having success on iOS. I install it in the usual way in main(): qInstallMessageHandler(myiOSMessageOutput); Even though I have an empty

[Interest] Qt on windows?

2019-11-06 Thread Jason H
I had a cohort of mine download an install Qt 5.12.5 for Windows (He's hot a Surface). Qt installed ok, we configured the project for mingw64, but the qmake step errors with mode error like it was expecting -project or -makefile, but never got it. I doctored some paths and it attempted to compil

Re: [Interest] Qt on windows?

2019-11-06 Thread Jason H
> Sent: Wednesday, November 06, 2019 at 12:15 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Qt on windows? > > On Wednesday, 6 November 2019 09:22:51 PST Jason H wrote: > > I had a cohort of mine download an install

Re: [Interest] Qt on windows?

2019-11-06 Thread Jason H
> Sent: Wednesday, November 06, 2019 at 4:07 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Qt on windows? > > On Wednesday, 6 November 2019 12:01:33 PST Jason H wrote: > > LOL, well yeah. I was assuming someone wo

Re: [Interest] Qt on windows?

2019-11-11 Thread Jason H
nesday, November 06, 2019 at 5:07 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Qt on windows? > > On Wednesday, 6 November 2019 12:01:33 PST Jason H wrote: > > LOL, well yeah. I was assuming someone would say you need to do &quo

Re: [Interest] Qt on windows?

2019-11-11 Thread Jason H
; From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Qt on windows? > > On Monday, 11 November 2019 13:01:32 PST Jason H wrote: > > 15:58:59: Starting: "C:\Qt\5.12.5\mingw73_64\bin\qmake.exe" > > "C:\Users\kevin\Down

Re: [Interest] Qt on windows?

2019-11-12 Thread Jason H
folder, or just appears to be > a folder due to the way Windows Explorer works? > > Regards, Tony > > > On 12/11/2019 10:05 am, Jason H wrote: > > Thanks for the tip. Moving it out of that cnhzdGF0aW9uX3VpLnppcA== > > directory made it happy. > > I wonder if

[Interest] Most simple emit from singleton?

2019-11-13 Thread Jason H
I've stumbled across a paradigm that I am starting to use frequently where I have a singleton, and I want it to emit something when I tell it to. So I've been providing a function and doing: MySingleton::instance()->emitMySignal(); Where: void MySingleton::emitMySignal() { emit mySignal();

Re: [Interest] Most simple emit from singleton?

2019-11-13 Thread Jason H
vember 13, 2019 at 10:33 AM > From: "Jérôme Godbout" > To: "Jason H" , "interestqt-project.org" > > Subject: RE: [Interest] Most simple emit from singleton? > > Why not declare a signals into your singleton header and call it directly? >

Re: [Interest] Most simple emit from singleton?

2019-11-13 Thread Jason H
> 3) While signals are technically public members, I'd consider that an > implementation detail; one should NEVER be emitting signals on behalf of > another arbitrary class. > > You should protect your signal emissions, e.g. use the same undocumented > trick that Qt uses (make them have an argument

Re: [Interest] Most simple emit from singleton?

2019-11-13 Thread Jason H
cation wide > events or settings changed. Since we do not really know the real purpose, > it's hard to have a better way. > > -Original Message- > From: Interest On Behalf Of Giuseppe > D'Angelo via Interest > Sent: November 13, 2019 12:38 PM > To: interest@qt-proj

[Interest] iOS: Get SSID *in Qt*

2019-11-14 Thread Jason H
So there's a couple ways in iOS to get the SSID. But I was hoping, since I need to target android as well, that I can have a Qt solution that "just works" complete with SSID change monitoring. There's two APIs: NEHotspotHelper which requires and entitlement or CaptiveNetwork which was deprecated

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Jason H
Maybe you should use qRgb() or qRgba(...) and let it put the bytes where it wants? also, note that there are qRed(), qBlue(), qGeen(), and qAlpha() which should take care of extracting the aproproate channel for you.   If you told me that in Qt, BGR32 (and BGRA32) is 0xAABBGGRR, I would agree.

[Interest] Full Screen on iPhone 11/iOS 13

2019-11-19 Thread Jason H
Yet again I find that apple changed how to get full screen. I had it working for iOS 10, but 13 is different. Does anyone know what I need to do to get my app full-screen again? Specifically w.r.t. what it takes for a Qt app. I've tried a variety of additions: @interface QIOSViewController : U

Re: [Interest] Full Screen on iPhone 11/iOS 13 [solved]

2019-11-19 Thread Jason H
It's stupid simple now: (in QML) visibility: Window.FullScreen I don't even need my old iOS 10 hacks! *so happy* > Sent: Tuesday, November 19, 2019 at 12:06 PM > From: "Jason H" > To: "interestqt-project.org" > Subject: [Interest] Full Screen on iPhone

[Interest] windeployqt

2019-11-27 Thread Jason H
I tried to use windeployqt to create a QML application directory structure to run on a system without Qt. I placed the resulting directory tree on the system and got nothing. Like I double clicked the .exe and nothing happened. So I went to the command line (cmd.exe) It just gave me the prompt b

Re: [Interest] windeployqt

2019-11-27 Thread Jason H
Many thanks for all those who chimed in! I will give it a shot next week (it's now Thanksgiving holiday in the US)     Sent: Wednesday, November 27, 2019 at 2:33 PM From: "Jakub Narolewski" To: "Jason H" , "interestqt-project.org" Subject: RE: [Interest

Re: [Interest] Android: can QCoreApplication::exec() be terminated unexpectedly?

2019-11-30 Thread Jason H
The Qt event loop is tied to your Activity. An Android app can have several activities (which are UIs) and services. Android can kill your app at anytime, you're supposed to stave your UI state inva bundle and restore it when it's needed again, as per lifecycle events. It's annoying. > Sent: Sa

Re: [Interest] windeployqt

2019-12-04 Thread Jason H
> Sent: Wednesday, November 27, 2019 at 2:16 PM > From: "Roman Wüger" > To: "Jason H" > Cc: "interestqt-project.org" > Subject: Re: [Interest] windeployqt > > Hello, > > try running windeployqt with the -qml or -qmldir option. Works f

Re: [Interest] windeployqt

2019-12-04 Thread Jason H
https://bugreports.qt.io/browse/QTBUG-80548 > Sent: Wednesday, December 04, 2019 at 3:39 PM > From: "Jérôme Godbout" > To: "Jason H" , "Roman Wüger" > Cc: "interestqt-project.org" > Subject: RE: [Interest] windeployqt > > That would

[Interest] When is parent not the parent?

2019-12-11 Thread Jason H
A simple Screen item derived from Item whose visible is false: Screen { id: proxScreen property int distanceEvents: 0 property string lastValue: "Far" ProximitySensor { id: proximity active:parent.visible } } When I change t

Re: [Interest] When is parent not the parent?

2019-12-12 Thread Jason H
> Sent: Thursday, December 12, 2019 at 8:38 AM > From: "Jérôme Godbout" > To: "Jason H" , "interestqt-project.org" > > Subject: RE: [Interest] When is parent not the parent? > > Quick question (punt intendended), why using Screen as object and n

Re: [Interest] Screenshot QML Applications

2019-12-12 Thread Jason H
FWIW, i use this and it works. > Sent: Friday, December 13, 2019 at 2:53 AM > From: "Matt Wright" > To: "Martin Leutelt" , "interest@qt-project.org" > > Subject: Re: [Interest] Screenshot QML Applications > > Hi Martin, > > Thanks for the suggestion, I will give it a go. > > Matt > > From: Mart

Re: [Interest] Qt Mac OS - App crashes when opening camera - Namespace TCC, Code 0x0

2019-12-17 Thread Jason H
I've had this working before... But have not tried it on a recent version of Qt. You need a plist entry, which I thought is how you get the permission request. It's just like in iOS. > Sent: Tuesday, December 17, 2019 at 11:53 AM > From: "Nuno Santos" > To: "interestqt-project.org" > Subject:

Re: [Interest] Qt Mac OS - App crashes when opening camera - Namespace TCC, Code 0x0

2019-12-18 Thread Jason H
It's been a while and I don't have access to that code anymore, but that sounds right, and familiar. But I thought Qt already did this? Or maybe I'm getting confused because i did that call ahead of time to prevent the app from going background... Anyway I'm glad you girls resolved. Maybe one

[Interest] undefined as JS object key in QML?

2020-01-03 Thread Jason H
Simplified example: Text { property var textForColor: {"transparent": "Waiting", "lime": "Ready", undefined: "Initializing"} text: textForColor[color] color: // set somewhere else, potentially undefined at the start } But if I include the undefined key, QML complains. Fails execution

Re: [Interest] undefined as JS object key in QML?

2020-01-03 Thread Jason H
efined:0} undefined > a { a: 1, b: 2, undefined: 0 } <-- this messed me up!! But it seems QML forces the keys as strings (which the console does not) Anyway, thanks for such a thorough explanation! > Sent: Friday, January 03, 2020 at 12:25 PM > From: "Jérôme Godbout" &

[Interest] The Mobile Agenda?

2020-01-04 Thread Jason H
So it looks like the QtWS 2019 videos are up on YouTube. https://www.youtube.com/watch?v=YmwAeS_ojPA "Qt 6 will bring massive improvements to QML and 3D development" At time 53:40 Lars is asked a question about mobile, and answers "We will continue to support them. Was that the answer you were l

[Interest] MacOS Plists?

2020-01-07 Thread Jason H
When I attempt to debug my app on MacOS: [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. Ho

Re: [Interest] Mac OS - AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo crashes application

2020-01-10 Thread Jason H
Curious, when it crashes like that, are you in the debugger? When I use the camera in Qt on OSX, in normal run mode, it works. Only when I . use the debugger it crashes with the permission message.   Also, what are you doing to provide the application PLIST? I have not done that successfully app

Re: [Interest] The Mobile Agenda?

2020-01-10 Thread Jason H
oid and iOS. > Do you have done this yet ? > > Am 05.01.20 um 16:12 schrieb Nelson, Michael: > > Jason, thanks for making these great points focused on missing features. > > Let's also not forget mobile specific bugs that sit unaddressed. > > > > Mike > > > &

[Interest] Handling IP V4 and V6 as a QTcpServer?

2020-01-13 Thread Jason H
I an starting to see QHostAddress::toString() return things like: ":::192.168.34.3", which is a IPv6 mapping. However when I try to connect to this address it does not work. That server is a QTcpServer bound as: _server.listen(QHostAddress::Any, PORT); When the QHostAddress resolves to a IPv

Re: [Interest] Handling IP V4 and V6 as a QTcpServer?

2020-01-21 Thread Jason H
> Sent: Monday, January 13, 2020 at 5:57 PM > From: "Thiago Macieira" > To: "interestqt-project.org" > Subject: Re: [Interest] Handling IP V4 and V6 as a QTcpServer? > > On Monday, 13 January 2020 10:49:38 PST Jason H wrote: > > I an starting to see

[Interest] OpenCV + Qt iOS: Wrong JPEG library version: library is 62, caller expects 80

2020-01-21 Thread Jason H
Does anyone know how to handle this? I'm not sure who is using which version. What I did: linked OpenCV into an iOS Qt app. Tape a picture and onImageSaved handler, set an Image element source property to "file://"+path, then it crashes immediately. Works fine in Android. _

[Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
When assigning an image element to an image capted from a Camera, it is not sufficient to just assign the `path` to the source of the Image element that is to display it: qrc:/main.qml:100:4: QML Image: Cannot open: qrc:/var/mobile/Containers/Data/Application/8BD0A3CA-74AA-4599-BCF5-E1863AEA688F

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
> Sent: Wednesday, January 22, 2020 at 1:56 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Should onImageSaved give a URL? > > On Wednesday, 22 January 2020 10:09:20 PST Jason H wrote: > > When assigning an image element to

Re: [Interest] Should onImageSaved give a URL?

2020-01-22 Thread Jason H
-Original Message- > From: Interest On Behalf Of Thiago Macieira > Sent: January 22, 2020 3:00 PM > To: interest@qt-project.org > Subject: Re: [Interest] Should onImageSaved give a URL? > > On Wednesday, 22 January 2020 11:00:41 PST Jason H wrote: > > > > onImageS

Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Jason H
> On Wednesday, 22 January 2020 12:52:41 PST Jason H wrote: > > Wow. So in the intervening tie between replies I did some searching and > > thought this was a face-palm moment, but not event the experts know about > > Qt.resolvedUrl() > > https://doc.qt.io/qt-5/qm

Re: [Interest] QQmlApplicationEngine::load fails on some Android device(s)

2020-02-03 Thread Jason H
That happens when QML can't create the entire object hierarchy. This can happen when you have a syntax error, or there is some failure to load a component. I would suggest looking at if you are referencing some hardware component on the device that doesn't exist or is otherwise broken. > Sent:

[Interest] What does LTS mean?

2020-02-06 Thread Jason H
I've been encountering an increasing number of issue that are crashes, that become fixed, but not back-ported to 5.12. I was under the impression that LTS would include this type of issue. Apparently, I am misinformed. I have reviewed the blog posts: https://www.qt.io/blog/2015/12/18/introducin

[Interest] QWebSocket text methods should be utf8?

2020-02-14 Thread Jason H
After reviewing the QWebSocket spec ( https://tools.ietf.org/html/rfc6455 ) text frames are supposed to be UTF-8 encoded, which would mean that QByteArray would be the proper class. Now I'm having to toUtf8() all the things I receive, and QString() the ones I send. I am sure this leads to some

[Interest] QML property lint suggestion

2020-02-15 Thread Jason H
I'm here watching Ulf's QtWS19 QML talk and had a thought... I might be dumb or crazy (either are equally likely) but, the other day I added a property called 'data' and completely broke my application. It was to store data I received. However QML also declares a property 'data' which is essentia

Re: [Interest] QWebSocket text methods should be utf8?

2020-02-16 Thread Jason H
connected to the signal, before doing the QString conversion and emit? > Sent: Friday, February 14, 2020 at 3:54 PM > From: "Thiago Macieira" > To: "interestqt-project.org" > Cc: "Jason H" > Subject: Re: [Interest] QWebSocket text methods should be utf8?

Re: [Interest] Converting CVImageBufferRef into QImage

2020-02-28 Thread Jason H
Just how invalid are we talking? It's well-known that the blue/red channels may be swapped, and I've seen padding on the row. Doing your math though you're only reporting 2 bytes per pixel, which is very wrong. What is the image format you expect? > Sent: Friday, February 28, 2020 at 4:42 PM > F

Re: [Interest] Converting CVImageBufferRef into QImage

2020-02-29 Thread Jason H
I don't know if it is possible, but OpenCV could probably do it. Not sure if 2vuy is in their list. Have a look at https://docs.opencv.org/3.4/d8/d01/group__imgproc__color__conversions.html#ga4e0972be5de079fed4e3a10e24ef5ef0 This should be hardware accelerated to some degree... > Sent: Friday

<    5   6   7   8   9   10   11   12   13   14   >