[Interest] Bluetooth LE: scheduleServiceDetailDiscovery issue

2021-02-15 Thread cagnulein
Hi, i'm developing a central app on android and ios that connects with several types of devices (most of them are fitness machinery). I'm facing a simple issue and I would like to ask you why Qt has this behaviour. The issue is that some bluetooth peripherals don't allow to read some characterist

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Thiago Macieira
On Monday, 15 February 2021 03:50:39 PST Anisha kaul wrote: > Greetings, > > The problem is that qputenv does not work if written after the > initialization of QGuiApplication. qputenv works just fine becauase the environment is set. Did you mean to say that QGuiApplication will not react to the

Re: [Interest] QML MouseArea containsMouse is set to true even if it's not actually

2021-02-15 Thread Jérôme Godbout
Hi, Check if you can tweak the following property on your mouse area. https://doc.qt.io/qt-5/qml-qtquick-mousearea.html#preventStealing-prop · preventStealing : bool · propagateComposedEvents

Re: [Interest] Turn off QML output

2021-02-15 Thread Alexander Dyagilev
Yes, you are right. Thank you very much :) On 2/15/2021 7:48 PM, Kai Köhne wrote: -Ursprüngliche Nachricht- Von: Interest Im Auftrag von Alexander Dyagilev Gesendet: Montag, 15. Februar 2021 17:33 An: interest@qt-project.org Betreff: [Interest] Turn off QML output Hello, When applicat

[Interest] QML MouseArea containsMouse is set to true even if it's not actually

2021-02-15 Thread Alexander Dyagilev
Hello, In our code we have one MouseArea which fills entire parent: MouseArea{ id:mouseAreaRow hoverEnabled:true anchors.fill:parent propagateComposedEvents:true onPressed:{mouse.accepted=false} } And we have another MouseArea which fills a small part of the same area which the first Mou

Re: [Interest] Turn off QML output

2021-02-15 Thread Kai Köhne
> -Ursprüngliche Nachricht- > Von: Interest Im Auftrag von Alexander > Dyagilev > Gesendet: Montag, 15. Februar 2021 17:33 > An: interest@qt-project.org > Betreff: [Interest] Turn off QML output > > Hello, > > When application starts, its Application output is bloated by a huge number of

[Interest] Turn off QML output

2021-02-15 Thread Alexander Dyagilev
Hello, When application starts, its Application output is bloated by a huge number of such lines: QQmlImports(qrc:/qml_ui/desktop/main.qml)::addFileImport: "../common" -1.-1 as "" QQmlImports(qrc:/qml_ui/desktop/main.qml)::addFileImport: "../common/Tools" -1.-1 as "" QQmlImports(qrc:/qml_ui/

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread Simon FEUTRIER
Roberto, As said in the mailing exchange, what I have observed is that the Qt app never does the bonding process while a working bluetooth app does it (like the nrf connect android app). It is the only hint I can give you. Sadly I don't have time to dig in the source code. Let me know what you fi

[Interest] Using QSGMaterial & QSGMaterialShader with multiple shaders

2021-02-15 Thread Nuno Santos
Hi, I’m trying to make a shader gallery using a GridView where the model is an array of shaders path. Then, a custom QQuickView, instantiates a custom QSGGeometryNode with a material that extends QSGMaterial. The QSGMaterial creates the shader: I’m having a problem though. All the items draw t

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Jérôme Godbout
Since you seem to be using Qml, you can take a look at https://doc.qt.io/qt-5/qml-qtquick-window-screen.html that could help you and have most of the job done, you could do your own qml singleton if you need to compute scale base on those value. You could access those property fom C++ and expor

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread Jérôme Godbout
Maybe you already knew that but just to make sure you pass the right flags on both end, both need to support encryption and they need to support the same encryption type. [cid:image001.png@01D70377.BAAD9A90] Which mode/level are you using? Which version of Bluetooth are you using on both end? T

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Tor Arne Vestbø
> On 15 Feb 2021, at 13:48, Anisha kaul wrote: > > Well, thank you for the response and for the idea about creation and deletion > of objects. I tried it and it worked. > I am feeling though that it is not a good way of writing code. > Am I trying to solve a wrong problem? > > My aim is to ru

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Anisha kaul
Well, thank you for the response and for the idea about creation and deletion of objects. I tried it and it worked. I am feeling though that it is not a good way of writing code. Am I trying to solve a wrong problem? My aim is to run this application on screens of different PPI. So, I thought that

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Tor Arne Vestbø
Can I ask, why do you want to set QT_SCALE_FACTOR at all? Cheers, Tor Arne On 15 Feb 2021, at 12:50, Anisha kaul mailto:anisha.kaul.1...@gmail.com>> wrote: Greetings, The problem is that qputenv does not work if written after the initialization of QGuiApplication. I want to calculate scale

Re: [Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Giuseppe D'Angelo via Interest
Il 15/02/21 12:50, Anisha kaul ha scritto: |qreal abc = QGuiApplication::primaryScreen()->physicalDotsPerInch(); qDebug() << "null " << abc; qputenv("QT_SCALE_FACTOR", "2"); QGuiApplication app(argc, argv);| I'm not exactly sure why would you want to do this, but you can destroy and recreate

[Interest] How to read screen information from QGuiApplication to put in qputenv environment variable?

2021-02-15 Thread Anisha kaul
Greetings, The problem is that qputenv does not work if written after the initialization of QGuiApplication. I want to calculate scale according to the information from QGuiApplication. How do I do it? The following code throws a segmentation fault. . . #include #include #include #include int

Re: [Interest] Trouble compiling qt3d for qt6 on windows 10

2021-02-15 Thread Paul Lemire via Interest
I can't really help about the compile issues. But I should be able to help regarding the plugin error. You likely need to copy a few more things from the qt3d build dir to your Qt install dir: qt3d_build_dir/qml/Qt3D into Qt_Install_Dir/qml/ qt3d_build_dir/qml/QtQuick/* into Qt_Install_Dir/q

[Interest] Trouble compiling qt3d for qt6 on windows 10

2021-02-15 Thread Daniel Patel
I have compiled qt6.1 from source which works and now I am trying to compile qt3d also from source by downloading from https://download.qt.io/official_releases/additional_libraries/qt3d/6.0/6.0.0/ and following the qmake instructions from: https://www.kdab.com/getting-your-3d-ready-for-qt-6/ I fir

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread cagnulein
Hi Simon, my peripheral is a Inspire I1.5 bike so yes, the encryption has been activated from the peripheral (i saw it in the hci snoof log collected using its own proprietary app on Android). i guess i will wait the iOS tests, and if it will work, i will rewrite from scratch the bluetooth code on

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread Simon FEUTRIER
Hi, I'm working on Windows so it could be different (who knows) ? Did you activate your peripheral encryption? What is your peripheral by the way ? In the issue, there is a link for the mailing exchange and there are some things about android : https://lists.qt-project.org/pipermail/interest/2020-

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread cagnulein
Hi, thanks for answering my question. The role of my app is Central and yes i already saw your bug reports and i think we're facing the same problem :( I'm on android btw, and i will test the same source code on iOS and will tell you it will work or not. If you have some ideas, we should talk ;) R

Re: [Interest] Bluetooth LE: Start Encryption (opcode 0x2019)

2021-02-15 Thread Simon FEUTRIER
Hello, What is the role of your qt app ? Central or Peripheral ? If it is your Central you cannot start encryption (you need to set encryption from the device side). If you enable your encryption from the peripheral side and it still does not work, look there : https://bugreports.qt.io/browse/QTB