[Interest] Only 9 QML components can be created partially?

2017-10-01 Thread Richard Weickelt
Hi, the following example fails after 9 loop iterations: #include #include int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QQmlEngine engine; QQmlComponent* components[47]; QObject* objects[47]; for (int i = 0; i <= 47; i++) {

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Richard Weickelt
> today I discovered that Q_QArgument does not handle a temporary (boolean) > value as I would have expected it. > I'm invoking the method similar to this: > > QArgument arg3("bool", !inProgress); > request.replySlot.invoke(m_objToInform, Qt::QueuedConnection, arg1, arg2, > arg3); I think your

[Interest] Internal QML context does not accept property

2018-05-10 Thread Richard Weickelt
I am loading a QML document with the following structure: A { B { } B { } } At some point in the application I am iterating over all B components and want to do: qmlContext(B)->setContextProperty("bla", "value") I need to assign different values to each instance of B. But I get

Re: [Interest] Qt 5.11.1 inside of a Docker container

2018-08-21 Thread Richard Weickelt
> I recently had success installing Qt 5.9.2 in a Windows docker > container using this link as a starting point: > https://stackoverflow.com/a/34032216/991000 You can also see this approach in action here: http://code.qt.io/cgit/qbs/qbs.git/tree/docker/stretch/Dockerfile But pulling packages

[Interest] Make Qt::PreciseTimer the default timer type

2018-04-11 Thread Richard Weickelt
Hi, is there a way to set Qt::PreciseTimer as the default timer type for all QTimer instances in an application? According to the QTimer documentation [1], Qt::CoarseTimer is the default. Thanks Richard [1] http://doc.qt.io/qt-5/qtimer.html#timerType-prop

Re: [Interest] Fwd: vs. Flutter

2019-02-27 Thread Richard Weickelt
> Your every response has indicated this will not happen, just that mobile > will follow the other platforms. I don't understand why Qt won't commit > to adding the missing Mobile APIs. The company is a joint stock company with the sole purpose of making as much profit as possible and filling the

[Interest] Creating C++ objects in JavaScript with operator new

2019-04-15 Thread Richard Weickelt
Hi, is there an easy way to register a QObject-derived class in the QML type system so that I can instantiate it from within JavaScript code using operator new? function someJavaScriptFunction(){ var myObject = new MyClass("blabla"); // ... } Right now I am registering another class as

Re: [Interest] Creating C++ objects in JavaScript with operator new

2019-04-16 Thread Richard Weickelt
> You can also generate an object from Qml code directly: > Qt.createQmlObject() I know, but I wanted to use operator new in order to achieve a better look & feel. Please note that this is/was easily possible in Qt Script. See the code snippets at

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

2019-05-10 Thread Richard Weickelt
On 10.05.2019 21:13, Thiago Macieira wrote: > On Thursday, 9 May 2019 16:58:47 PDT Hamish Moffatt wrote: >> For my use I rebuilt the Qt packages from https://launchpad.net/~beineri >> for stretch; they install into /opt rather than replacing the system >> packages, so you don't have the issues

Re: [Interest] qmldir Internal Singleton File

2019-05-03 Thread Richard Weickelt
Furkan, > In the documentation for qmldir, there’s an option to make a QML document > internal to the module it’s defined in with the /internal/ keyword. But when > I use it like so > > /Internal singleton MySingleton.qml 1.0 MySingleton.qml/ > / > / > I get the following error: > >> /invalid

Re: [Interest] Qt Docker images for Windows

2019-08-13 Thread Richard Weickelt
> TL;DR: I created a Windows Docker image containing with Qt open-source > installations at https://hub.docker.com/r/keneanung/qt-windows > > After some research, I didn't find any images for Windows that > included Qt, the preferred method seems to be cross-compiling, and > thus I created a

Re: [Interest] How to set a non-global context property for a single QQmlComponent?

2019-07-18 Thread Richard Weickelt
On Wednesday, 17 July 2019, Patrick Stinson wrote: > Right, I did try that one but if I remember right I got an error setting the > context property, or that it was the same as the engine root context. I would expect that QQmlEngine::contextForObject() as well as qmlContext() returns a

[Interest] Expected event execution order in this multi-thread application

2019-09-29 Thread Richard Weickelt
Hello, what is the expected event execution order in the following scenario? - 2 Threads running their event loop - Thread T1 is handling an event E1 - Thread T2 sends an event E2 to T1 (queued) - Thread T1 (still handling E1) emits an event E3 to itself (direct) after E2 has already been

Re: [Interest] Expected event execution order in this multi-thread application

2019-09-29 Thread Richard Weickelt
>> what is the expected event execution order in the following scenario? >> >> - 2 Threads running their event loop >> - Thread T1 is handling an event E1 >> - Thread T2 sends an event E2 to T1 (queued) >> - Thread T1 (still handling E1) emits an event E3 to itself (direct) after >> E2 has already

Re: [Interest] Expected event execution order in this multi-thread application

2019-09-30 Thread Richard Weickelt
>> - Thread T1 is handling an event E1 >> - Thread T1 sends E3 to itself (queued connection) >> - Thread T2 sends an event E2 to T1 (queued connection) >> - Thread T1 handles E3 after completing E1. >> - Thread T1 while handling E3 calls QCoreApplication::processEvents() >> periodically >> - E2 is

Re: [Interest] Tricks to improve moc performance?

2019-12-06 Thread Richard Weickelt
> By the way: does anyone know about an implementation that avoids moc runs in > a similar way how ccache avoids compile runs ? You mean concatenating header and source files containing a Q_OBJECT macro and feeding moc the result? I cannot imagine that this would be a safe transformation in

Re: [Interest] Tricks to improve moc performance?

2019-12-06 Thread Richard Weickelt
> This solution gets you a single build for all the the mocs, which is good, > but > won't generate the best code that Peppe was talking about. You want the moc > for a given class to be in the class's own .cpp. Unless you build with link-time optimization enabled, I suppose. Because then

Re: [Interest] Expected event execution order in this multi-thread application

2019-10-05 Thread Richard Weickelt
>> Because I attached a debugger and stopped T1 during >> QCoreApplication::processEvents(). I can see E3 (the one that the thread is >> currently processing) in postEventList at index 0 and E2 at index 1. That's >> it. From there I see the following call chain >>

[Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-13 Thread Richard Weickelt
Is there a way to set a QJSValue as a context property in QQmlContext and retain function properties? I am loading a .js file with QJSEngine::importModule(). The result is QJSValue object containing all exported functions and properties from the module. // file.js export function

Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Richard Weickelt
Thanks for your reply. > >> I am loading a .js file with QJSEngine::importModule(). The result is >> QJSValue object containing all exported functions and properties from the >> module. >> >> // file.js >> export function someFunction(someArg) { >> return someArg; >> } >>

Re: [Interest] Strange Reply

2020-04-06 Thread Richard Weickelt
> My eMail provider classifies **all** emails sent from a qt.io domain (JIRA, > mailing list and gerrit) as spam since recently. The matching spam filter is > Barracuda Reputation Block List (BRBL). I wanted to write "qt-project.org domain". > - The last OK email on [Interest]: 02. April 18:11

Re: [Interest] Strange Reply

2020-04-06 Thread Richard Weickelt
Might be related: My eMail provider classifies **all** emails sent from a qt.io domain (JIRA, mailing list and gerrit) as spam since recently. The matching spam filter is Barracuda Reputation Block List (BRBL). - The last OK email on [Interest]: 02. April 18:11 UTC by Jerome Godbout - The first

Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Richard Weickelt
> OK, that does paint a different picture. The feature you are asking for, > then, is for QJSEngine to allow defining ECMAScript modules from C++, that > can be imported in your JavaScript files via standard ECMAScript "import" > statements. I would not be automatically opposed to such a feature.

[Interest] Moving mkspecs folder when configuring Qt

2020-05-28 Thread Richard Weickelt
Hello, when configuring and building Qt, almost all top-level folders are configurable. The mkspecs folder seems to be hardcoded. Is there a way to move mkspecs, for instance into a subdirectory, so that the resulting folder structure looks like: Qt +--bin +--lib +--res +--mkspecs +--xxx

[Interest] Replace QML console object

2020-07-06 Thread Richard Weickelt
I want to replace QML's console object with a custom implementation. I have tried to replace the "console" property in the global object with not luck. I have tried to replace the method properties of the global console object with no luck (as described here:

Re: [Interest] Qt scripting with JavaScript

2020-06-18 Thread Richard Weickelt
> Is the QJSEngine a complete replacement of QScriptEngine ? No, not complete. QJSEngine provides less APIs and less control of the script execution and context arrangement. Whether your application is portable depends on which features of QtScriptEngine you use. Do you: - swap out the global

Re: [Interest] Qt 5.15 pull out of open source?!

2021-01-07 Thread Richard Weickelt
> Apologies for not sending the mail also to the interest mailing list. This > is nothing new, as this was announced in already February 2020. Please correct me if I am wrong. I assume that you are referring to this blog post: https://www.qt.io/blog/qt-offering-changes-2020 It was ONLY

Re: [Interest] Running qemu as debug service provider in Qt Creator

2021-10-05 Thread Richard Weickelt
Hi, > You can start it manually with qemu and tell it to stop before the first line > of the application. Then tell Qt Creator to connect to the GDB server that > qemu created. > > Debug > Start Debugging > Attach to Running Server > Thanks, but it doesn't work. The "Attach to Running

[Interest] Running qemu as debug service provider in Qt Creator

2021-10-05 Thread Richard Weickelt
Hi, I want to run a bare metal application in a QEMU environment and debug it with gdb using Qt Creator. But I can only see a limited predefined selection of debug providers, like openocd, j-link, ... Is there no way to run a custom command instead? I expected the "generic" provider to cover

Re: [Interest] Is there a good alternative to the QML Controls in Qt6 for native desktop integration purposes?

2022-02-25 Thread Richard Weickelt
Hi Volker, closing access to LTS was a terrible decision by the Qt Company's management. Why is there no bounty system to attract developers fixing bugs and lowering the barrier for anybody to get bugs fixed in a timely manner or to get features added? Voting for tickets is entire non-sense

Re: [Interest] QtCreator - CMAKE_PREFIX_PATH with multiple paths

2023-02-09 Thread Richard Weickelt
Hi, Is anyone able to tell me if QtCreator is able to have a CMAKE var defined with multiple values? The default value for a project is %{Qt:QT_INSTALL_PREFIX}, is it possible to append more paths? I have for Qt Creator itself the following: