Re: [Interest] QProcess unbuffered

2023-03-08 Thread Björn Schäpers
Am 07.03.2023 um 23:39 schrieb Thiago Macieira: On Tuesday, 7 March 2023 14:23:00 PST Björn Schäpers wrote: From the code I reviewed back then (and remember it now) it unpacks the handles directly to a HANDLE, which is pointer size (although it only uses the lower 32 bit). But Scott will tell

Re: [Interest] QProcess unbuffered

2023-03-08 Thread Björn Schäpers
Am 08.03.2023 um 03:18 schrieb Scott Bloom: I really want to thank Björn With his starting point, I was able to tweak his changes, and seem to have it working  I have more testing to do. But it was actually pretty straight forward. * I use VS (2022) so the packing was different

Re: [Interest] QProcess unbuffered

2023-03-07 Thread Björn Schäpers
Björn Schäpers wrote: startInf.cbReserved2 = sizeof(HackedHandlePasser); startInf.lpReserved2 = reinterpret_cast(); These reserved fields are how the runtimes "pass file descriptors" to child processes. This mimics the Unix fork() behaviour that the parent's open file d

Re: [Interest] QProcess unbuffered

2023-03-07 Thread Björn Schäpers
So here is what I have: struct __attribute__((packed)) HackedHandlePasser { using HANDLE32 = std::int32_t; DWORD    NumberOfHandles = 3; // 4 Byte BYTE FlagsPerHandle[3];   // 3 * 1 Byte HANDLE32 Handles[3];  // 3 * 4 Byte   };  

Re: [Interest] QProcess unbuffered

2023-03-06 Thread Björn Schäpers
Am 06.03.2023 um 02:11 schrieb Scott Bloom: I have an external executable (mkvalidator from https://www.matroska.org/downloads/mkvalidator.html It never flushes the output, and it uses linefeed without carriage returns to overwrite existing text on the output. The problem is, when I run

Re: [Interest] spurious breakpoints in Qt Creator

2022-05-16 Thread Björn Schäpers
Am 16.05.2022 um 09:09 schrieb Elvis Stansvik: Den sön 15 maj 2022 21:45Matej Košík > skrev: Hi, While using Qt Creator, I noticed that it generates "spurious breakpoints". How to reproduce: - I start Qt Creator - I generate a new project  

Re: [Interest] Windows: "loadlibrary failed with error 87" on a configuration with a fake video card?

2022-03-18 Thread Björn Schäpers
If you can use the Process Monitor from SysInternals you can also see which library should be loaded. But I don't know it that has an command line interface. Am 18.03.2022 um 05:19 schrieb Alexander Dyagilev: Yes. But what I meant is that it has to be triggered by Qt somehow. As a first

Re: [Interest] Proxied view not updating live when source model does

2021-09-22 Thread Björn Schäpers
You emit dataChanged with the given role (which is Qt::EditRole), but not for Qt::DisplayRole. Is it that? Regards, Björn. Am 20.09.2021 um 19:15 schrieb Murphy, Sean: I'm having an issue where my proxy model and its associated view aren't updating live when changes are made in the source

Re: [Interest] Difficulty running Timer from QThread

2021-07-20 Thread Björn Schäpers
Am 20.07.2021 um 06:19 schrieb Thiago Macieira: On Monday, 19 July 2021 11:51:30 PDT Björn Schäpers wrote: Yes, and the Timer was created inside the VLCWorker::initVLC, and said worker was moved, but before initVLC, but initVLC was called in the moved from thread. But the QTimer had no parent

Re: [Interest] Difficulty running Timer from QThread

2021-07-19 Thread Björn Schäpers
Am 19.07.2021 um 17:57 schrieb Thiago Macieira: On Sunday, 18 July 2021 23:08:13 PDT Björn Schäpers wrote: you should parent your QTimer, and moveToThread afterwards. That shouldn't be "AND". That should be an exclusive OR: you either parent your QObject or you moveToThread, not

Re: [Interest] Difficulty running Timer from QThread

2021-07-19 Thread Björn Schäpers
Hi, you should parent your QTimer, and moveToThread afterwards. Then the Timer will also be moved to the thread, otherwise it remains whereever you created the worker. Regards, Björn. Am 19.07.2021 um 05:29 schrieb Israel Brewster: Yes, this is a FAQ, but I can’t seem to figure out what I am

Re: [Interest] Windows installer for Qt programs

2020-04-21 Thread Björn Schäpers
Am 21.04.2020 um 09:19 schrieb "Alexander Carôt": Hello all, I consider shipping my Qt built software with a conventional installer on Windows. Can anyone give me a recommendation of a solid freeware for this purpose ? Thanks in advance, best Alex We use Innosetup at Work for that. I've

Re: [Interest] Example for: QTreeView + QAbstractItemModel + external data

2016-04-27 Thread Björn Schäpers
Am 26.04.2016 um 19:05 schrieb anton: Hi, I have subclassed QAbstractItemModel, and I want to load additionally data in the model as soon as somebody clicks on the [+] in the treeview to load the children of this item form an external data ( web- app which gives me json data back). Now: I