Re: [Interest] QML vs Electron

2018-02-16 Thread Jérôme Godbout
It would be nice to have a Qml modules manager. I mean, where people could contribute to some common independent reusable modules. That would give good kick start to generate quickly some Qml application. How many of us had to create a drawer Item with animation and self resize, an overlay

Re: [Interest] qml or qwidget

2018-02-23 Thread Jérôme Godbout
What you are looking for is rendering to framebuffer, this make a custom painting for the item (all Qml Item are OpenGL based for now under the hood). All you need to do is a view Qml Item that render your framebuffer as a texture (your Qml viewport of some sort). What you just link is putting

Re: [Interest] Enumerating context properties from QML

2017-12-20 Thread Jérôme Godbout
er setting context properties/loading QML. > > Anyway, thank you for reply! > > 2017-12-20 16:21 GMT+00:00 Jérôme Godbout <jer...@bodycad.com>: > >> I'm not sure it will work but one might try. You might recover the object >> context and maybe scan the meta

Re: [Interest] Enumerating context properties from QML

2017-12-20 Thread Jérôme Godbout
I'm not sure it will work but one might try. You might recover the object context and maybe scan the meta object to find the properties. *auto context = QQmlEngine::contextForObject(myObjPtr);* Since there's no getter into the context directly. The only getter is *contextProperty(const QString&

[Interest] QBluetoothServiceDiscoveryAgent cannot retrieve sdp uuids

2018-08-15 Thread Jérôme Godbout
Hi, I'm trying to discover some particular Bluetooth device on Android, but I have some trouble using the *QBluetoothServiceDiscoveryAgent*. Here's the workflow: 1. Scan using *QBluetoothDeviceDiscoveryAgent *to discovers all devices. 2. Wait for scan to complete, wait for* finished()

Re: [Interest] QBluetoothServiceDiscoveryAgent cannot retrieve sdp uuids

2018-08-16 Thread Jérôme Godbout
luetooth service along with it! I have to quit the application and restart the Bluetooth stack and start over and always get the same result with the complete scan!?!? On 16 August 2018 at 01:51, Alex Blasche wrote: > > > > -Original Message- > > From: Interest > On

Re: [Interest] QBluetoothServiceDiscoveryAgent cannot retrieve sdp uuids

2018-08-16 Thread Jérôme Godbout
I also tried to recreate a new service agent for each scan, with the same result. The BLE stack crash and system notify with popup. On 16 August 2018 at 15:10, Jérôme Godbout wrote: > > Minimal discovery only uses cached SDP values. If the platform does not > have any values the abov

Re: [Interest] QBluetoothServiceDiscoveryAgent cannot retrieve sdp uuids

2018-08-16 Thread Jérôme Godbout
, it don't show much into wireshark as far as I can tell. I guess I will have to probe all device or to make a different workflow for the client. On 16 August 2018 at 15:32, Jérôme Godbout wrote: > If it might help (since I don't have a stack trace, I will try to extract > Android HCI log

Re: [Interest] QBluetoothServiceDiscoveryAgent cannot retrieve sdp uuids

2018-08-16 Thread Jérôme Godbout
: - Service discovery completed. D/MyApp( 8516): ..\MyApp\BleMgr.cpp:205 (void BleMgrPrivate::checkServiceIsCompatible()): Device encounter error during service scan, irgnore this device for now: "4F:DA:03:3C:5F:6D" On 16 August 2018 at 15:12, Jérôme Godbout wrote: > I als

Re: [Interest] error when trying to emit custom object via QObject.Signal

2018-08-27 Thread Jérôme Godbout
You will probably need to have the object declared to the meta type (sorry I don't known the call, but there must be one into PySide 2, you might want to dig into the doc near this https://doc.qt.io/qtforpython/PySide2/QtCore/QMetaObject.html ) and ideally be copiable since you will send the

Re: [Interest] WebVuew::runJavaScript problems

2018-08-23 Thread Jérôme Godbout
you can always add a request argument with current datetime to your request url, this avoid caching: https://myserver.org?date=20180823_085632 even if you don't use the argument, it would not cache it On 23 August 2018 at 00:58, Jason H wrote: > I think I'm also seeing a caching problem where

Re: [Interest] QWidget or QDialog as a singleton

2018-08-30 Thread Jérôme Godbout
my 2 cents, what I do is I make a basic QObject singleton, which provide signal, anything can hook to the signal and everybody can easily fire the signal. QObjectSingleton::showHelpDialog() could be send from anywhere by any code and I can then make my Widget change it's visibility based on this

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Jérôme Godbout
You might want to check the state since you use the state to change the anchors. You could add objectName or another property to your state to check your condition. property bool isAnchors: myObj.states.find(function(s){ return s.name == myObj.state; }).myPropertyBool; State { property

[Interest] QMake install

2018-04-09 Thread Jérôme Godbout
. [1515684621069_logo.png] Jérôme Godbout 2992 chemin Sainte-Foy Quebec, Canada G1X1P6 tel: +1 (581) 777-0050 email: godbo...@amotus.ca web: www.amotus-solutions.com<http://www.amotus-solutions.com> ___ Interest mailing list Interest@qt-proje

Re: [Interest] QtQuick Controls 2 and Designer: Should I use Styles or Customize?

2018-04-09 Thread Jérôme Godbout
You could have a property inside the controler to select the proper theme value with a fallback, your theme singleton would then need to have different set of color. Theme { id: component property var defaultTheme: panelTheme property var mainTheme: ... property var

Re: [Interest] QtQuick Controls 2 and Designer: Should I use Styles or Customize?

2018-04-11 Thread Jérôme Godbout
Look nice, but what exactly does the function SoStronk.contextPropertyForQmlObject(obj, string) does ? From: Shantanu Tushar <shaan...@gmail.com> Sent: April 11, 2018 9:29 AM To: Jérôme Godbout Cc: Thomas Hartmann; interest@qt-project.org Subject: Re: [In

Re: [Interest] How do I get the most robust version of 5.10

2018-04-12 Thread Jérôme Godbout
You might want to stick with LTS version if you are looking for most stability. I think the last LTS Qt version was 5.9.x. Qt aim to support a few version (before it was 5.6.x as LTS). Thoses version should suffer less from major refactoring or other new features.

[Interest] QtCreator Debugger not breaking into C++

2018-04-17 Thread Jérôme Godbout
that I must specify to automatically load symbols when staring debug session? [1515684621069_logo.png] Jérôme Godbout 2992 chemin Sainte-Foy Quebec, Canada G1X1P6 tel: +1 (581) 777-0050 email: godbo...@amotus.ca web: www.amotus-solutions.com<http://www.amotus-solutions.

Re: [Interest] RowLayout with Text with wrap mode

2018-03-05 Thread Jérôme Godbout
You need to specify a width to your Text element so the wrap around can occur. Else the Text consider it should set the width according to the text and therefor no wrap around is possible. If you want dynamic width range, you should consider Layout.minimumWidth and Layout.maximumWidth with

Re: [Interest] RowLayout with Text with wrap mode

2018-03-05 Thread Jérôme Godbout
ignored). If you don't see any problems with that, fine, I do. From: gr3...@gmail.com <gr3...@gmail.com> on behalf of Pierre-Yves Siret <py.si...@gmail.com> Sent: Monday, March 5, 2018 9:00 AM To: Jérôme Godbout Cc: Igor Mironchik; Qt Project Subject: R

Re: [Interest] RowLayout with Text with wrap mode

2018-03-05 Thread Jérôme Godbout
All the *View* type are a bit of a pain with Layout item. You need to specify the height and width properly with the Layout.minimumWidth/Height and maximum values. If you don't need all the animation stuff from ListView, you can do a simple GridLayout and fill the element which would be way

Re: [Interest] QML Menu

2018-02-28 Thread Jérôme Godbout
you probbaly can bind the width with the menu width. You could do so with Component.onCompleted: { // Fix android bad layout if(Qt.application.platform == 'Android') width = Qt.binding(function(){ return menu.width; }); } You could wrap this into MenuItem.qml that is import after the

Re: [Interest] responding to an Android intent in a Qt app

2018-06-28 Thread Jérôme Godbout
Hi, first I'm not a specialist in any case, just giving some tips, that might help seek. I think you need the following: 1. declare intent into the manifest 2. make the java intent handler with a native function callback when this occur. * You probably need to filter the event and

Re: [Interest] Bluetooth on Qt on Pi (for real this time)

2018-06-29 Thread Jérôme Godbout
here's a quick link for the feature exchange during pairing (OOB too like NFC): http://blog.bluetooth.com/bluetooth-pairing-part-1-pairing-feature-exchange https://blog.bluetooth.com/bluetooth-pairing-part-2-key-generation-methods

Re: [Interest] Bluetooth on Qt on Pi (for real this time)

2018-06-29 Thread Jérôme Godbout
I'm not sure you want to do Bluetooth EDR or Bluetooth Low energy (they are not the same thing at all, they use the same antenna but have a different network stack) For BLE: Make sure you understand all the connection concept (pairing != connecting). Pairing is recurent connection that can

[Interest] hmac sha256

2018-10-15 Thread Jérôme Godbout
the wrong class here. Anybody have a good pointer on how to do this? Any good hmac sha256 class to perform this? -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m:* +1 (581) 777-0050 amotus.ca <http://www.amotus-solutio

Re: [Interest] hmac sha256

2018-10-16 Thread Jérôme Godbout
).toHex(); Thanks and sorry about that. On Mon, 15 Oct 2018 at 18:11, Hamish Moffatt wrote: > On 16/10/18 08:16, Jérôme Godbout wrote: > > Hi, > I'm trying to find the C++ equivalent of this python: > *import hashlib* > *import hmac* > *hmac.new(bytearray(m_api_secret

Re: [Interest] QLowEnergyController always disconnected after service discovery finished

2018-10-31 Thread Jérôme Godbout
oogle Pixel 2 Android 9.0 Good luck, Jerome From: nus1998 Sent: October 30, 2018 9:16 PM To: Jérôme Godbout Cc: interest@qt-project.org Subject: Re:RE: [Interest] QLowEnergyController always disconnected after service discovery finished Hi Jerome, Thanks for your advice, I seperated charateri

Re: [Interest] Qt API annoyances: where to log/discuss?

2018-10-31 Thread Jérôme Godbout
All those back_inserter() and C++0xXY template make our life easier in the end, I strongly suggest you do learn them, they can make very generic code with SFINAE that most other language will have hard time to accomplish with the same final level of performance. It's a good balance of quantity

Re: [Interest] QLowEnergyController always disconnected after service discovery finished

2018-10-30 Thread Jérôme Godbout
Hi, You should find and resolve the first error, any error could lead to disconnection: qt.bluetooth.bluez: Error1: "no attribute in given range found" last command: 10 handle: 1 m_controller discoveryFinished Also make sure you finish the discovery before you start doing any other

Re: [Interest] QLowEnergyController always disconnected after service discovery finished

2018-11-01 Thread Jérôme Godbout
: Alex Blasche Sent: November 1, 2018 11:11 AM To: Jérôme Godbout ; nus1998 Cc: interest@qt-project.org Subject: Re: [Interest] QLowEnergyController always disconnected after service discovery finished Hi, all the comments from Jérôme apply and unfortunately I have had similar issues

Re: [Interest] QDateTime and std::chrono

2018-11-02 Thread Jérôme Godbout
Hi, Maybe you can pass by a string, this would be highly inefficient but could be simple enough. I guess you should make the time into UTC too. You could use QString to std::string for the string stream. And do the following: std::tm tm = {}; std::stringstream ss("Jan 9 2014 12:35:34"); //

Re: [Interest] Detect connected Bluetooth keyboard under Android

2018-11-01 Thread Jérôme Godbout
There is no way yet to achieve that, at least that I know of, the only thing you can do is monitor the space and dimension to see if the virtual keyboard is displayed. The Android OS will display the soft keyboard or not on his own. You can only try to monitor to see if any changes on size have

Re: [Interest] Chasing a standard

2018-11-05 Thread Jérôme Godbout
I did a few medical application for orthopedic surgery, the coding standard is not a requirement, but only a simplest way to validate your software. I did used Qt into all of them and we manage to certify them for surgery room. It always depend on the level or risk your software lies on. Also

Re: [Interest] Chasing a standard

2018-11-05 Thread Jérôme Godbout
on you and you have to prove how your software can NEVER be a life threat. -Original Message- From: rol...@logikalsolutions.com Sent: November 5, 2018 11:30 AM To: Jérôme Godbout Cc: Jason H ; interest Subject: Re: [Interest] Chasing a standard Quoting Jérôme Godbout : > JPL wo

[Interest] Full screen video stream glitch

2018-11-07 Thread Jérôme Godbout
the fullscreen rendering and the maximize rendering inside the Window Manager? This is under Linux. If anybody have any tips or area I should investigate to solve this it would be welcome. Thanks, Jerome [36E56279]RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software

Re: [Interest] qmake with release config is called for debug build

2018-11-12 Thread Jérôme Godbout
The way you wrote it, it will only copy the file when parsing the .pro/.pri files, you need to make a target and add it to the build sequence. Here's the doc example: mytarget.target = .buildfile mytarget.commands = touch $$mytarget.target mytarget.depends = mytarget2 mytarget2.commands = @echo

Re: [Interest] Problem with font size on Android and High DPI

2018-11-15 Thread Jérôme Godbout
That I don't known, I'm 100% Qml and I just apply this to my Control style at one place. Maybe there is a way to do this into the cascading widget style... -Original Message- From: Roman Wüger Sent: November 14, 2018 1:32 PM To: Jérôme Godbout Cc: ekke ; interest@qt-project.org

[Interest] Android NDK 18

2018-11-12 Thread Jérôme Godbout
from NDK 18. So I guess the only possible choice is to revert the NDK to version 17. Or is it any way to use clang and llvm compiler/linker with Qt Android? [36E56279]RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109

Re: [Interest] Android NDK 18

2018-11-12 Thread Jérôme Godbout
+ QtC 4.7.2: best to use NDK 16b see also discussion Android list with BogDan ekke Am 12.11.18 um 18:45 schrieb Jérôme Godbout: Hi, Just to check if I'm getting this right, I did update my Android Studio (I'm finish with my old project and start a new one, so it's a good time to do

Re: [Interest] Problem with font size on Android and High DPI

2018-11-14 Thread Jérôme Godbout
Take care the pixel density is way different on a mobile device form a normal desktop window. You might need to adjust your sizing for many thing. I do the following, I develop on a particular device with REFERENCE SIZE: // Collect screen dimension const QScreen* const screen =

Re: [Interest] QML id as string?

2018-10-04 Thread Jérôme Godbout
: > In my own immediate case, first is fine, but the observation is correct - > the most useful one is actually the last. > > I'll have a look at nameForObject and let you know. > > > *Sent:* Thursday, October 04, 2018 at 10:31 AM > *From:* "Jérôme Godbout" > *

Re: [Interest] Including Qt Quick 2 extension plugin in Android App

2018-10-04 Thread Jérôme Godbout
; > I've tried pointing ANDROID_EXTRA_PLUGINS to various locations of the > extension's install folder as well, but that just seems to dump everything > underneath the specified path, directly into assets... > > Can anyone tell me, how on earth is this supposed to work? Am I jus

Re: [Interest] QML id as string?

2018-10-03 Thread Jérôme Godbout
s, >Morten > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m:

Re: [Interest] QML id as string?

2018-10-03 Thread Jérôme Godbout
; http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m:* +1 (581) 777-0050 amotus.ca <http://www.amotus-solutions.com/> statum-iot.com ___ Interest

Re: [Interest] QML: Wrapping an item from outside

2018-09-28 Thread Jérôme Godbout
_ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m:* +1 (581) 777-0050 amotus.ca <http://www.amotus-solutions.com

[Interest] [Android] Qt machine unique id

2018-10-10 Thread Jérôme Godbout
on Android, if possible on iOS too (iOS is not mandatory). I was looking at QSysInfo::machineUniqueId(), but I'm not sure it will fit the bill, anyone have a good way to do this? -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m:* +1

Re: [Interest] [Qt3d] QSceneLoader in Thread

2018-10-10 Thread Jérôme Godbout
t; can any one help please. > Thanks in advance. > ___________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer

Re: [Interest] [Android] Qt machine unique id

2018-10-10 Thread Jérôme Godbout
er has more than one device? > > > *Sent:* Wednesday, October 10, 2018 at 9:38 AM > *From:* "Jérôme Godbout" > *To:* "Qt Interest" > *Subject:* [Interest] [Android] Qt machine unique id > Hi, > what is the best way to identify a device even if os is up

Re: [Interest] [Android] Qt machine unique id

2018-10-10 Thread Jérôme Godbout
__ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérôme Godbout*Senior Software Developer *p:* +1 (418) 800-1073 ext.:109 *m

Re: [Interest] QML: Wrapping an item from outside

2018-10-01 Thread Jérôme Godbout
ot; > } > } > > In this example, I want the MyAutoSizeRectangle instance to apply > whatever. I am thinking something maybe like a visual item model of size 1? > But then I have to deal with the view management. > > > > > *Sent:* Friday, September 28, 2018 at 2:21

Re: [Interest] QML id as string?

2018-10-04 Thread Jérôme Godbout
> definitely-uniique-id, it would be an approach that can be leverage if the > situation makes it possible to get objects by id, rather than having to > maintain it myself. This mapping already exists at some level, I just want > it exposed. > > *Sent:* Wednesday, October 03, 2018 at 1:3

Re: [Interest] QML id as string?

2018-10-04 Thread Jérôme Godbout
names, the first is returned." > > > -Original Message- > > From: Interest On > > Behalf Of Jérôme Godbout > > Sent: Thursday, 4 October 2018 3:27 PM > > To: Jason H > > Cc: Qt Interest > > Subject: Re: [Interest] QML id as string? > > > >

Re: [Interest] When Microsoft comes to purchase Qt what will be the outcome?

2018-09-25 Thread Jérôme Godbout
e community that if Qt ever stops being > updated, that it is relicensed under BSD. > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > -- RAPPROCHEZ LA DISTANCE *Jérô

Re: [Interest] QtQuickCompiler interfer with lupdate

2019-01-16 Thread Jérôme Godbout
with lupdate Hi, I'm using Qt 5.12.0 under macOS 10.13.6 for Android / iOS QtQuickCompiler is only used in Release Builds and lupdate / QtLinguist / lrelease only in debug builds all is working fine for me with this constellation ekke Am 15.01.19 um 23:04 schrieb Jérôme Godbout: Hi, Using Qt 5.12.0

Re: [Interest] Qt.conf and desktop application

2019-01-16 Thread Jérôme Godbout
of other changes??? This is really strange and unexpected. I will just ditch it, unless someone have a good way to make a qt.conf and not modify the whole building process. Thanks, Jerome -Original Message- From: Mitch Curtis Sent: January 16, 2019 5:45 AM To: Jérôme Godbout

Re: [Interest] QQmlApplicationEngine and antialiasing

2019-01-16 Thread Jérôme Godbout
. Thanks for the help, Jerome -Original Message- From: Giuseppe D'Angelo Sent: January 16, 2019 6:13 AM To: Jérôme Godbout ; Qt Interest Subject: Re: [Interest] QQmlApplicationEngine and antialiasing Hi, Il 15/01/19 20:26, Jérôme Godbout ha scritto: > Ah good to known, I will keep a n

Re: [Interest] Qt.conf and desktop application

2019-01-16 Thread Jérôme Godbout
you need to set Qml2Imports. On 16/01/2019 18:40, Jérôme Godbout wrote: > So how do you specify the Translation and QmlImport path when running > locally? I wish I could only add a few lines at the beginning of my C++ but > it doesn't seem possible to modify the translation file i

Re: [Interest] Qt.conf and desktop application

2019-01-16 Thread Jérôme Godbout
. -Original Message- From: Interest On Behalf Of Nikos Chantziaras Sent: January 16, 2019 11:09 AM To: interest@qt-project.org Subject: Re: [Interest] Qt.conf and desktop application On 16/01/2019 01:12, Jérôme Godbout wrote: > I’m having some problem while porting an application to Li

Re: [Interest] Qt.conf and desktop application

2019-01-16 Thread Jérôme Godbout
Yeah the packaging can be customized, but it doesn't solve the debug running, not everything is running from packaged. I don't like to have any difference between the debug and the release package, this open the door to bad surprises. The problem is not with the packaging, but the entire env

Re: [Interest] QtQuickCompiler interfer with lupdate

2019-01-17 Thread Jérôme Godbout
It seem like it was suppose to be fix into 5.12.0 but it doesn't for me, maybe it did not make it in time? https://bugreports.qt.io/browse/QTBUG-71553?jql=text%20~%20%22lupdate%20qtquickcompiler%22 From: Interest On Behalf Of Jérôme Godbout Sent: January 16, 2019 9:19 AM To: ekke ; interest@qt

Re: [Interest] QQmlApplicationEngine and antialiasing

2019-01-15 Thread Jérôme Godbout
c(); } ________ From: Interest on behalf of Giuseppe D'Angelo via Interest Sent: Monday, January 14, 2019 6:37 PM To: interest@qt-project.org Subject: Re: [Interest] QQmlApplicationEngine and antialiasing On 14/01/2019 22:10, Jérôme Godbout wrote: > Hi, >

Re: [Interest] QQmlApplicationEngine and antialiasing

2019-01-15 Thread Jérôme Godbout
fig (1 1 1 8) qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8) -Original Message- From: Giuseppe D'Angelo Sent: January 15, 2019 11:02 AM To: Jérôme Godbout ; Qt Interest Subject: Re: [Interest] QQmlApplicationEngine and antialiasing Il 15/01/19 16:10, Jérôm

[Interest] QQmlApplicationEngine and antialiasing

2019-01-14 Thread Jérôme Godbout
Hi, I'm trying to enable the antialiasing inside my project that use QQmlApplicationEngine (currently under Linux). I have some QMl Shape that look ugly and the antialiasing doesn't seem to work at all. What is the proper way to enable the AA that is cross platform and will work on both

[Interest] QtQuickCompiler interfer with lupdate

2019-01-15 Thread Jérôme Godbout
Hi, Using Qt 5.12.0. This is under Linux. I have some internationalization in my project. I made my .pri to add the .qml files and manages the required languages and files. This is all working with the external tools / linguistic. If I have the following line to my .pro CONFIG +=

[Interest] Qt.conf and desktop application

2019-01-15 Thread Jérôme Godbout
Hi, I'm having some problem while porting an application to Linux Desktop. I'm using a qt.conf to set 2 values [Paths] Translations = :/i18n Qml2Imports = :/ I don't do anything else, but I cannot launch my application when I add the Qt.conf (even with only Translations). The platform library

Re: [Interest] Understanding QImage::transformed()

2018-12-14 Thread Jérôme Godbout
Are you trying to make a POSIT algorithm? You can take a look at the C# accord POSIT algo: http://accord-framework.net/samples.html# Maybe someone known a good C++ implementation for this. You need to find the transform then make a reverse look up to the original pixel and make an

Re: [Interest] Stack trace on Windows

2019-04-02 Thread Jérôme Godbout
the application into monitoring mode. Here is a list of development tools under Windows: https://technet.microsoft.com/en-us/ff543998(v=vs.96) [36E56279] une compagnie [cid:image014.jpg@01D4E95F.28B6CAA0] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1

[Interest] Reuse Qml Shape

2019-04-02 Thread Jérôme Godbout
under the hood? only the first item get rendered. The shape are not set asynchronous, so it should not matter. [36E56279] une compagnie [cid:image014.jpg@01D4E97B.43F16610] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109

Re: [Interest] Parsing data from serialport

2019-04-02 Thread Jérôme Godbout
Make sure your reading loop and processing data are separated. Call you read device when needed or into a loop that can take some pause to avoid 100% CPU usage for nothing. QByteArray buffer; void ReadDeviceHaveData() { while(serial_port->bytesAvailable()) // This can be dangerous is data

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
://asmaloney.com twitter ~ @asmaloney<https://twitter.com/asmaloney> On Wed, Mar 27, 2019 at 12:11 PM Jérôme Godbout mailto:godbo...@amotus.ca>> wrote: Is there a way to detect the application run inside a VM from Qt? I have a different behavior on how I need to handle a cdc_acm unde

[Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
a bash command: grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM" But I'm looking at a more clean way to detect I run inside VirtualBox. Any idea? [36E56279] une compagnie [cid:image002.jpg@01D4E496.29A5DC30] RAPPROCHEZ LA DISTANCE Jérôme Godbout Dé

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
2019 11:37:42 PDT Jérôme Godbout wrote: > Nice, thanks Thiago! > > -Original Message- > From: Interest On Behalf Of Thiago > Macieira > Sent: March 27, 2019 2:05 PM > To: interest@qt-project.org > Subject: Re: [Interest] Detemine Run into VM > > On Wednesd

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
Nice, thanks Thiago! -Original Message- From: Interest On Behalf Of Thiago Macieira Sent: March 27, 2019 2:05 PM To: interest@qt-project.org Subject: Re: [Interest] Detemine Run into VM On Wednesday, 27 March 2019 09:11:11 PDT Jérôme Godbout wrote: > Is there a way to det

Re: [Interest] Track global mouse position in QML

2019-03-25 Thread Jérôme Godbout
o, model, type declaration and controller with business logic). That may differ since the line is blur sometime. From: Interest On Behalf Of Jérôme Godbout Sent: March 22, 2019 2:18 PM To: René Hansen Cc: interest Subject: Re: [Interest] Track global mouse position in QML import QtQui

Re: [Interest] Parsing data from serialport

2019-04-04 Thread Jérôme Godbout
to the readyRead() signal, and having a while(canReadLine()) { ... } in the reacting slot. On Tue, 2 Apr 2019 22:01:49 + Jérôme Godbout wrote: > Make sure your reading loop and processing data are separated. Call you read > device when needed or into a loop that can take some pause to

Re: [Interest] Parsing data from serialport

2019-04-04 Thread Jérôme Godbout
ich is not always the case. From: Konstantin Shegunov Sent: April 4, 2019 11:19 AM To: Jérôme Godbout Cc: Paolo Angelelli ; interest@qt-project.org Subject: Re: [Interest] Parsing data from serialport On Thu, Apr 4, 2019 at 5:46 PM Jérôme Godbout mailto:godbo...@amotus.ca>> wrote:

Re: [Interest] Parsing data from serialport

2019-04-03 Thread Jérôme Godbout
of it. The IODevice (Serial) buffer is buffering the reception of the data until you read it, your buffer is checking data is competed to be parsed, they have a different purpose. [36E56279] une compagnie [cid:image002.jpg@01D4E9FD.50AA6910] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior

Re: [Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-28 Thread Jérôme Godbout
For my usage that will be enough, most of them use Ubuntu/gentoo. If they use something exotic, I will have to check with them and they will need to run it into a VM to have issue with this. I will create a fallback if ever needed ( a fraction of a fraction of a fraction of 1% ain't time worthy

Re: [Interest] [External] Interface with signals and slots (Jérôme Godbout)

2019-02-18 Thread Jérôme Godbout
. Thanks anyway, Jerome From: Interest on behalf of Stan Morris Sent: Monday, February 18, 2019 9:43 PM To: interest@qt-project.org Subject: Re: [Interest] [External] Interface with signals and slots (Jérôme Godbout) Re: [External] Interface with signals

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

2019-03-01 Thread Jérôme Godbout
You can also give CBor implementation a look,maybe it could fit your bill too: https://doc.qt.io/qt-5/qcbormap.html From: Sylvain Pointeau Sent: March 1, 2019 4:46 PM To: Jérôme Godbout Cc: Qt Project Subject: Re: [Interest] using a custom class as parameter of signal/slot, used in QML

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

2019-03-01 Thread Jérôme Godbout
. QByteArray are copiable. If you can provide more information about your struct data that could help. From: Sylvain Pointeau Sent: March 1, 2019 3:27 PM To: Jérôme Godbout Cc: Qt Project Subject: Re: [Interest] using a custom class as parameter of signal/slot, used in QML Hello Jerome, O

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

2019-03-01 Thread Jérôme Godbout
or QVariantMap. That would be copiable. From: Sylvain Pointeau Sent: March 1, 2019 11:15 AM To: Jérôme Godbout Cc: Qt Project Subject: Re: [Interest] using a custom class as parameter of signal/slot, used in QML Hello Jerome, On Fri, Mar 1, 2019 at 3:34 PM Jérôme Godbout mailto:godbo

Re: [Interest] CBOR Questions

2019-03-06 Thread Jérôme Godbout
I think the CBOR is the (de)serialization, the length and CRC or any other features like that is part of your transport protocol and not the CBOR itself. You need to transfer the whole data first and then pass it to CBOR deserialization when all data is received, you could also split with start

Re: [Interest] Odd behaviour when organizing .qml files into folders

2019-02-22 Thread Jérôme Godbout
And what is the advantage to declare it into the Resources manually? I add my qml to my .qrc files and then add the .qrc to my resources, SO I end up with a single listing of the file into my project tree. I add the qrc:/// to the import path and everything is fine. Inside my qt.conf:

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

2019-03-01 Thread Jérôme Godbout
LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca<http://www.amotus-solutions.com/> statum-iot.com<http://statum-iot.com/> [cid:image003.png@01D4D011.EF589B50]<https://www.facebook.com/LesSolutionsAmotus/>

Re: [Interest] Qt 5.13 Bluetooth Windows

2019-03-14 Thread Jérôme Godbout
Now that's a good news! I'm looking forward to use 5.13 just for this, we will finally be able to test our BLE application under Windows. Do you know if the BLE advertising can be seen in raw byte? or only iBeacon/eddy stone.../pregen format is supported under Windows? I did iOS and Android

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Jérôme Godbout
Just throwing an idea, maybe you could convert the mouse click or hover to coordinate on the Map::toCoordinate() and interpolate the coordinate to see with parameter to the line vector and then find the distance to that line parameter point or min/max point. This is not super fast but could be

Re: [Interest] How to detect a HiDPI display with Qt?

2019-03-18 Thread Jérôme Godbout
I do Qml, so // C++, expose the m_image_scale as a meta property class MyApp : public QObject { Q_OBJECT Q_PROPERTY(QString imageScale read imageScale CONSTANT) public: // MyApp init should extract the string scale as previously stated, this function only returns the

Re: [Interest] How to detect a HiDPI display with Qt?

2019-03-18 Thread Jérôme Godbout
510] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca<http://www.amotus-solutions.com/> statum-iot.com<http://statum-iot.com/> [cid:image003.png@01D4DD94.AA6DD510]<https://www.facebook.com/LesSolutionsAmotu

Re: [Interest] How to detect a HiDPI display with Qt?

2019-03-18 Thread Jérôme Godbout
ot;).arg(image_scale_ratio); This is what I do. [36E56279] une compagnie [cid:image008.jpg@01D4DD95.0986ECD0] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca<http://www.amotus-solutions.com/> statum-iot.com<http:/

[Interest] QTest

2019-03-19 Thread Jérôme Godbout
Hi, I run qTest::exec() to run my test but I would like to known if it's possible to recover the number of failure/pass/skipped to do some work after the qTest::exec(), here is code sample of what I would like to do: /***/ int rv = qTest::exec(); int nb_success = qTest::???(); int

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Jérôme Godbout
lines/segments you need to iterate to find the smallest. Philippe Lelong Le 07-03-2019 20:28, Jérôme Godbout a écrit : > Just throwing an idea, maybe you could convert the mouse click or > hover to coordinate on the Map::toCoordinate() and interpolate the > coordinate to see

Re: [Interest] Track global mouse position in QML

2019-03-21 Thread Jérôme Godbout
this into a component that you instanciate into you root item, this will act like a optional addon and no need to subclass. [36E56279] une compagnie [cid:image002.jpg@01D4DFCD.9DD2E1C0] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800

Re: [Interest] Track global mouse position in QML

2019-03-21 Thread Jérôme Godbout
of the application could connect to the coordinate and check if the global to whatever item you need match and act according to it. [36E56279] une compagnie [cid:image002.jpg@01D4DFD1.D847A580] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800

Re: [Interest] Track global mouse position in QML

2019-03-22 Thread Jérôme Godbout
g. From: René Hansen Sent: March 22, 2019 5:24 AM To: Jérôme Godbout Cc: Jason H ; interest Subject: Re: [Interest] Track global mouse position in QML Imagine this example: import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.5 Window { visible: true width: 640 heig

Re: [Interest] Odd behaviour when organizing .qml files into folders

2019-02-17 Thread Jérôme Godbout
Hi, I strongly suggest you add your resource path to your qml import path. And start doing module into the resource (subfolder with qmldir file that list the exposed component). Note, you can append to resource path from multiple resource files, I used git submodules for more generic module

Re: [Interest] [External] Interface with signals and slots

2019-02-18 Thread Jérôme Godbout
far. [36E56279] une compagnie [cid:image002.jpg@01D4C76B.ECA213E0] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca<http://www.amotus-solutions.com/> statum-iot.com<http://statum-iot.com/> [cid:

Re: [Interest] What are you using for continuous integration?

2019-02-12 Thread Jérôme Godbout
free! Amotus une compagnie DimOnOff RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior /  Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca statum-iot.com -Original Message- From: Interest On Behalf Of Nuno Santos Sent: February 12, 2019 6:05 PM To: Interests

[Interest] windeployqt and qml

2019-02-14 Thread Jérôme Godbout
? Thanks, Jerome [36E56279] une compagnie [cid:image002.jpg@01D4C44A.7A5AC4E0] RAPPROCHEZ LA DISTANCE Jérôme Godbout Développeur Logiciel Sénior / Senior Software Developer p: +1 (418) 800-1073 ext.:109 amotus.ca<http://www.amotus-solutions.com/> statum-iot.com<http://statum-iot.com/> [

<    1   2   3   4   5   >