Re: [Interest] QJSEngine won't evaluate octal literal

2021-08-03 Thread Fabrice Mousset | GEOCEPT GmbH
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() <<

Re: [Interest] QML MenuBar : works with PySide2 but not c++ ?

2021-06-03 Thread Fabrice Mousset | GEOCEPT GmbH
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 :

Re: [Interest] Memory leak in grabToImage?

2020-08-10 Thread Fabrice Mousset | GEOCEPT GmbH
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();

Re: [Interest] QQuickWindow Transparent Window Issues on Windows NVIDIA GPU

2020-08-04 Thread Fabrice Mousset | GEOCEPT GmbH
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:

Re: [Interest] Trouble with Android JNI and QEventLoop

2020-07-13 Thread Fabrice Mousset | GEOCEPT GmbH
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

Re: [Interest] Trouble with Android JNI and QEventLoop

2020-07-13 Thread Fabrice Mousset | GEOCEPT GmbH
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

[Interest] Trouble with Android JNI and QEventLoop

2020-07-13 Thread Fabrice Mousset | GEOCEPT GmbH
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

Re: [Interest] LinuxFB rotation configuration

2020-07-06 Thread Fabrice Mousset | GEOCEPT GmbH
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.

Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Fabrice Mousset | GEOCEPT GmbH
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

Re: [Interest] Should onImageSaved give a URL?

2020-01-23 Thread Fabrice Mousset | GEOCEPT GmbH
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"

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-17 Thread Fabrice Mousset | GEOCEPT GmbH
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

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

2019-06-26 Thread Fabrice Mousset | GEOCEPT GmbH
> -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

[Interest] QEventLoop ::hasPendingEvents() replacement?

2019-06-25 Thread Fabrice Mousset | GEOCEPT GmbH
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

Re: [Interest] QtWebAssembly license question

2019-04-17 Thread Fabrice Mousset | GEOCEPT GmbH
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

Re: [Interest] using a custom class as parameter of signal/slot, used in QML

2019-03-01 Thread Fabrice Mousset | GEOCEPT GmbH
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