Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-25 Thread Thiago Macieira
On sábado, 26 de novembro de 2016 15:22:43 PST Ch'Gans wrote: > Why is QVariant behaviour changing depending on the compiler version? You did not test multiple compiler versions. Never once in your email did you mention a single GCC version number, let alone two. So how can you claim that it's t

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Thiago Macieira
On sábado, 26 de novembro de 2016 13:11:43 PST Ch'Gans wrote: > So according to /usr/lib/x86_64-linux-gnu/libQt5Widgets.prl (KUbuntu's > Qt), Qt was built with avx and avx2, according to > /opt/Qt/5.7/gcc_64/lib/libQt5Widgets.prl (Form Official Qt binaries), > Qt was built with avx, avx2, avx512f,

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Thiago Macieira
On sábado, 26 de novembro de 2016 13:01:03 PST Ch'Gans wrote: > On 26 November 2016 at 11:57, Thiago Macieira wrote: > > That's a useless result. Your tool is telling you not the proper time of > > each function, but the aggregate time of that function and everything it > > called. > Well, I thou

[Interest] Cert pinning in QML?

2016-11-25 Thread Jason H
What's the easiest way to do certificate pinning for QML apps? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-25 Thread Ch'Gans
Hi there, In a model/view class, i have a column which is Qt::ItemIsUserCheckable, in my model's setData(), i do: if (role == Qt::CheckStateRole && index.column() == VisibleColumn) { Qt::CheckState state = value.value(); item->visible = state == Qt::Checked; emit dataChange

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch'Gans
On 26 November 2016 at 13:01, Ch'Gans wrote: > On 26 November 2016 at 11:57, Thiago Macieira > wrote: >> On sábado, 26 de novembro de 2016 11:37:39 PST Ch'Gans wrote: >>> I have run valgrind function profiler here, and it seems that my app >>> spend most of it's time in: >>> - QApplication::exec

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch'Gans
On 26 November 2016 at 11:57, Thiago Macieira wrote: > On sábado, 26 de novembro de 2016 11:37:39 PST Ch'Gans wrote: >> I have run valgrind function profiler here, and it seems that my app >> spend most of it's time in: >> - QApplication::exec()/QGuiApplication::exec() >> - _dl_runtime_resolv_avx/

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Thiago Macieira
On sábado, 26 de novembro de 2016 11:37:39 PST Ch'Gans wrote: > I have run valgrind function profiler here, and it seems that my app > spend most of it's time in: > - QApplication::exec()/QGuiApplication::exec() > - _dl_runtime_resolv_avx/_dl_runtime_resolve_avx'2 That's a useless result. Your too

[Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch'Gans
Hi there, On my Linux computer (KUbuntu 16.10, AMD CPU), I'm having a big performance problem with a very simple scene containing a single ellipse with a drop shadow effect. When zooming in, the CPU usage goes to 100% and the view takes ages to draw. This is very simple to reproduce, no need for a

Re: [Interest] [Qt Bluetooth] How to choose local adapter when connecting to service with QBluetoothSocket?

2016-11-25 Thread Alexander Blasche
> -Original Message- > From: Interest [mailto:interest-bounces+alexander.blasche=qt.io@qt- > project.org] On Behalf Of Ayberk Özgür > Sent: Friday, 25 November 2016 09:39 > To: interest@qt-project.org > Subject: [Interest] [Qt Bluetooth] How to choose local adapter when connecting > to se

[Interest] Flow-like layout ("GridFlow", "ContentFlow")

2016-11-25 Thread Maxim
I want make an compact positioning of QtQuick items with different height Flow don't support multiple vertical items inside one row (see example below) here is what Flow does: --

Re: [Interest] Creating Q_GADGET from qml

2016-11-25 Thread Immanuel Weber
Hi Dmitry, thanks for your reply. I read that and in principal that's what I have done with my class, I forgot to copy the line with registerEqualsComparator() But out of frustration after I send the mail, I wrote Qt.doubleVector2D() and the error message pointed me to the solution. Qt and QtPos

Re: [Interest] Creating Q_GADGET from qml

2016-11-25 Thread Dmitry Volosnykh
Hello, Immanuel! I think you have missed this documentation page: http://doc.qt.io/qt-5/positioning-cpp-qml.html Quote: Using QGeoCoordinate as an example, the C++ types are directly exposed to the QML environment via its meta type: qRegisterMetaType(); QMetaType::registerEqualsComparator(); Reg

[Interest] [Qt Bluetooth] How to choose local adapter when connecting to service with QBluetoothSocket?

2016-11-25 Thread Ayberk Özgür
Hello, In the presence of multiple Bluetooth adapters, is it possible to specify which local adapter to use when creating a QBluetoothSocket or calling QBluetoothSocket::connectToService()? I'm interested in Linux/BlueZ as well as Android (where it is not even clear whether multiple Bluetooth

[Interest] Creating Q_GADGET from qml

2016-11-25 Thread Immanuel Weber
Hi all, I'm trying to expose a class DoubleVector2D which is a Q_GADGET to qml.  That class looks like this: class DoubleVector2D { Q_GADGET Q_PROPERTY(double x READ x WRITE setX) Q_PROPERTY(double y READ y WRITE setY) public: DoubleVector2D() {} DoubleVector2D(double x, double y) : m_x(x), m_y(y)