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++)
{
> 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
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
> 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
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
> 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
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
> 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
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
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
> 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
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
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
>> 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
>> - 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
> 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
> 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
>> 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
>>
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
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;
>> }
>>
> 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
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
> 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.
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
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:
> 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
> 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
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
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
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
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:
31 matches
Mail list logo