I don't know why (perhaps the "strict mode" is always active with Qt?), but you
to use 0o11 to force octal encoding to avoid confusion with binary encoding
(0b11).
QJSEngine eng;
auto jsv = eng.evaluate("(function(){return 0o11;})()");
qDebug() << jsv.isError() << jsv.toString() <<
I think you also have to load QML module in PRO file:
MenuBar.pro
===
QT += quick qml
Best regards
Fabrice Mousset
Von: Interest Im Auftrag von Nicholas Yue
Gesendet: Donnerstag, 3. Juni 2021 06:09
An: Tony Rietwyk
Cc: interest@qt-project.org
Betreff: Re: [Interest] QML MenuBar :
Hi,
I am not a C++ guru, but I think your memory leak issue is linked with
QSharedPointer usage.
I think you have to delete the connection to remove the lambda and destroy the
QSharedPointer.
Like this:
void Utils::takeScreenshot()
{
QQuickItem *item = m_rootView->contentItem();
Hello,
If you are targeting Windoows10, you could try to use Direct3D 12 renderer with
Qt 5.15.x ==> https://doc.qt.io/qt-5/qtquick-visualcanvas-adaptations-d3d12.html
Regards
Fabrice
Von: Interest Im Auftrag von Furkan Uzumcu
Gesendet: Dienstag, 4. August 2020 16:33
An:
Van Daele
Gesendet: Montag, 13. Juli 2020 16:45
An: Fabrice Mousset | GEOCEPT GmbH
Cc: Qt Interest
Betreff: Re: [Interest] Trouble with Android JNI and QEventLoop
The JniHandler::stateChanged is called from Android/Java (or Kotlin) I guess?
Can you try to emit a signal in JniHandler::stateChan
will dead lock!
Regards
Fabrice
Von: Marc Van Daele
Gesendet: Montag, 13. Juli 2020 11:36
An: Fabrice Mousset | GEOCEPT GmbH
Cc: Qt Interest
Betreff: Re: [Interest] Trouble with Android JNI and QEventLoop
Can you also print the thread-pointer/id next to the name?
Maybe (just gue
Hi all,
First, I tried to send this mail to Android mailing list, but got an error
message as reply, so I try here. Sorry if I am wrong
I have a random issue with one of my Android service I've build with Qt 5.12.9.
I have centralized JNI interface in one C++ class, which is a singleton.
My
Hi,
You can find it simply with a little help from google/qwant/duckduckgo/ect.
*
https://stackoverflow.com/questions/56601993/how-to-rotate-a-qt5-application-using-the-linux-framebuffer
To summarize:
1. Without changing code :
QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=180
1.
Perhaps you should use QString::localeAwareCompare() ?
BR
Fabrice
> -Ursprüngliche Nachricht-
> Von: Interest Im Auftrag von Hamish
> Moffatt
> Gesendet: Freitag, 8. Mai 2020 08:27
> An: Qt Interest
> Betreff: [Interest] unexpected result from QString::compare
>
> I'm trying to sort
Hello,
I found this documentation entry very interesting about url vs string handling
in QML/JavaScript
https://doc.qt.io/qt-5/qml-url.html
BR
Fabrice
> -Ursprüngliche Nachricht-
> Von: Interest Im Auftrag von Jason H
> Gesendet: Mittwoch, 22. Januar 2020 21:53
> An: "Jérôme Godbout"
Hi Sebastian,
Can you try this (I preferred using !! to verify if a variable is defined and
not null):
@
text: !!Controller ? Controller.triedSteps : “”
@
BR
Fabrice
Von: Interest Im Auftrag von m...@herrdiel.de
Gesendet: Donnerstag, 17. Oktober 2019 12:41
An: interest@qt-project.org
> -Ursprüngliche Nachricht-
> Von: Interest Im Auftrag von Thiago
> Macieira
> Gesendet: Dienstag, 25. Juni 2019 18:09
> An: interest@qt-project.org
> Betreff: Re: [Interest] QEventLoop ::hasPendingEvents() replacement?
>
> On Tuesday, 25 June 2019 08:00:02 PDT Fabrice Mousse
Hi all,
Since Qt 5.3 QAbstractEventDispatcher::hasPendingEvents() has been set
"obsolete".
Is there an alternate way to know if a QEventLoop has pending events?
Best regards
Fabrice Mousset
___
Interest mailing list
Interest@qt-project.org
Thank you for the link.
And no, I don’t have a commercial license for Qt. Qt LGLP licensed part is
enough for my needs.
I will have to deal with JavaScript then.
Regards
Fabrice
Von: Jason H
Gesendet: Dienstag, 16. April 2019 16:28
An: Fabrice Mousset | GEOCEPT GmbH
Cc: inter...@lists.qt
Hi Sylvain,
It is not so complicated, when passing an object instance to QML (it can only
by pointers of QObject based classes), if the instance doesn’t have a parent,
the QML Engine take ownership of the object and delete if when it is no more
needed.
If the instance has a parent, then QML
15 matches
Mail list logo