Re: [Interest] Qt archives corrupted?

2020-03-30 Thread Giuseppe D'Angelo via Interest
Il 30/03/20 22:02, Matthew Woehlke ha scritto: What happened to the Qt archives? I can download 1.41, but 5.2 - 5.8 and 5.10 and 5.11 are missing? They have been moved here https://download.qt.io/new_archive/qt/ HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software

Re: [Interest] Qt Creator licensing for companies with Qt Commercial developers

2020-03-27 Thread Giuseppe D'Angelo via Interest
On 27/03/2020 15:03, Tomas Konir wrote: Sorry for possible misunderstanding, but i think, that original question was little different. Question was: There is company, where are two developer groups: Group1: Use QtCreator and works with QT libraries (and works with other code which not use

Re: [Interest] Qt5 connect signal to signal

2020-03-10 Thread Giuseppe D'Angelo via Interest
Il 10/03/20 14:21, Jérôme Godbout ha scritto: This should work, the default is connect type auto, which mean that it will be direct if both object (source and this in your example) have the same thread affinity. If both have a different thread affinity, the connection will be queued Watch

Re: [Interest] Callgrind under Linux

2020-03-06 Thread Giuseppe D'Angelo via Interest
Il 06/03/20 18:13, Christian Kandeler ha scritto: By the way: Is there a list of such environment variables that let you configure Qt behavior at runtime? I wish it was (or similarly there was one of the compile macros to define). I've tried to write one myself, but it falls out of sync

Re: [Interest] Callgrind under Linux

2020-03-06 Thread Giuseppe D'Angelo via Interest
Il 06/03/20 15:56, Konstantin Tokarev ha scritto: We did find a closed issue about it:https://bugreports.qt.io/browse/QTBUG-62118 But no solution or hint about the cause of this. You can configure Qt with explicitly disable RDRAND, or use same hack as used in tst_qrandomgenerator.cpp, passing

Re: [Interest] Fwd: Re: Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-17 Thread Giuseppe D'Angelo via Interest
Il 08/02/20 03:37, Jonathan Purol ha scritto: After manually removing every line of code to see when a MVCE would work, I found a loose `blockSignals(true)` flying around that was there from a debugging session. By the way: there's QSignalBlocker for not forgetting... HTH, -- Giuseppe

Re: [Interest] QWebSocket text methods should be utf8?

2020-02-17 Thread Giuseppe D'Angelo via Interest
Il 15/02/20 15:46, Roland Hughes ha scritto: The QString class, by virtue of the little yippy-yappy dogs it is running on isn't big-endian hence your continually calling toUtf8(). Endianess has nothing to do with this: 1) QString is UTF-16 encoded (in host byte order). The whole ordeal is

Re: [Interest] What does LTS mean?

2020-02-06 Thread Giuseppe D'Angelo via Interest
Il 06/02/20 17:11, Jason H ha scritto: With Qt 5.12 not being in strict phase (there is no 5.15 LTS yet, and I cannot find an announcement) or even very strict phase, I assume 5.12 is standard LTS phase. I believe fixes for crashes are something that should be in LTSs. Change my mind? Even

Re: [Interest] Qt Account email verification needed

2020-01-29 Thread Giuseppe D'Angelo via Interest
On 29/01/2020 15:01, The Qt Company wrote: Thank you for creating a Qt Account. Please verify your email address 'interest@qt-project.org' within 72 hours to complete the registration process. ^ This was me. Ignore it. There's something very fishy here: are the lists open for posting also to

Re: [Interest] Q_DECLARE_SMART_POINTER_METATYPE type restriction

2020-01-28 Thread Giuseppe D'Angelo via Interest
Il 28/01/20 21:59, j...@embedded.pro ha scritto: I was investigating the idea of storing an std::shared_ptr in a QVariant. This would allow me to put a shared pointer to my custom data int a QComboBox's data field. I'm aware of the existence of QSharedPointer. The data I am working with is

Re: [Interest] QOpenGLWidget and quad-buffer stereo

2019-12-24 Thread Giuseppe D'Angelo via Interest
Hi, On 20/12/2019 14:57, Tilmann Krueger wrote: Are we doing something wrong? How is one supposed to set this up correctly? Or are we really stuck with QGLWidget? All tried with a Windows 10 1903, with Quadro FX 4600 and a nvidia 3d vision compatible display from Acer. Not trying to give

Re: [Interest] Klocwork errors in Qt

2019-12-14 Thread Giuseppe D'Angelo via Interest
Il 09/12/19 14:27, Roland Hughes ha scritto: Gosh no. I'm more stunned that only one person got it. That was an incredibly well written post. Everyone should read it. Too many QML users I guess. auto will be removed though. A bad idea that cannot be fixed. So were trigraphs and digraphs. There

Re: [Interest] Tricks to improve moc performance?

2019-12-06 Thread Giuseppe D'Angelo via Interest
Hi, Il 06/12/19 10:48, Dmitriy Purgin ha scritto: Hi Giuseppe, > This trick is used in several places in Qt itself (look for "includemoc" > in commits). Not only it helps build times but also it produces slightly > better code overall. Could you please elaborate what exactly do you mean

Re: [Interest] Tricks to improve moc performance?

2019-12-06 Thread Giuseppe D'Angelo via Interest
Il 06/12/19 09:42, Uwe Rathmann ha scritto: Something you can try is to include the moc file at the end of your cpp file. This can be done like this: #include "moc_XYZ.cpp" This type of construction is at least supported by qmake. This does not reduce the number of moc runs, but it reduces

Re: [Interest] Klocwork errors in Qt

2019-12-05 Thread Giuseppe D'Angelo via Interest
Il 05/12/19 00:54, Thiago Macieira ha scritto: Same issue (dangling pointer), no "auto" required. Or QStringView f() { QString s("hello"); return s; } Or even QVector v; v << QString("world"); etc. Really, one can build countless examples where Modern C++ will gladly make you

Re: [Interest] Klocwork errors in Qt

2019-12-04 Thread Giuseppe D'Angelo via Interest
Hi, Il 04/12/19 13:56, Christian Gagneraud ha scritto: On Wed, 4 Dec 2019 at 19:28, Giuseppe D'Angelo via Interest wrote: Il 04/12/19 02:36, Christian Gagneraud ha scritto: BTW, Clazy has a check for that very specific case, which just show how dangerous is this QStringBuilder. https

Re: [Interest] Klocwork errors in Qt

2019-12-03 Thread Giuseppe D'Angelo via Interest
Il 04/12/19 02:36, Christian Gagneraud ha scritto: BTW, Clazy has a check for that very specific case, which just show how dangerous is this QStringBuilder. https://github.com/KDE/clazy/blob/master/docs/checks/README-auto-unexpected-qstringbuilder.md As a professional developer, one should

Re: [Interest] QSpinbox repeat delay

2019-12-03 Thread Giuseppe D'Angelo via Interest
Il 03/12/19 21:07, Murphy, Sean ha scritto: When using a QSpinBox, if the user clicks and holds on one of the up/down buttons (or uses one of the keyboard keys that do the same thing), there is a bit of a delay before the autorepeat functionality starts. Is there a spot to query what that

Re: [Interest] QListView moveRow() from model not called

2019-12-01 Thread Giuseppe D'Angelo via Interest
Il 01/12/19 23:07, Martin Marmsoler ha scritto: Why moveRows() is not called? Because moveRows was added in Qt 5.x, and drag and drop in Qt 4, and still uses insert+remove for backwards compatibility. Not the answer you were probably looking for... My 2 c, -- Giuseppe D'Angelo |

Re: [Interest] Most simple emit from singleton?

2019-11-13 Thread Giuseppe D'Angelo via Interest
On 13/11/2019 18:11, Jason H wrote: Maybe. Couldn't I just call: MySingleton::Instance()->MySignal(); and skip emit altogether? I've read that Q_EMIT and emit are just syntactic sugar, and there is confusion in this stackexchange:

Re: [Interest] QImage::copy threadsafe?

2019-11-10 Thread Giuseppe D'Angelo via Interest
Il 09/11/19 20:01, maitai ha scritto: I'll try to make a copy, I am reluctant because I must be very careful with memory and time to copy. As I said, the copies will be shallow copies, very cheap to make (they're just increases of a reference counter). The fact that the payload is actually

Re: [Interest] QImage::copy threadsafe?

2019-11-09 Thread Giuseppe D'Angelo via Interest
Hi, On 08/11/2019 18:33, maitai wrote: All is in the tile, is QImage::copy threadsafe? The method is const but is it enough? Documentation does not state it is thread safe so I am wondering. My case is I have a QImage loaded in the main thread, and many many threads that keep extracting small

Re: [Interest] Help, I'm in QML signal hell

2019-11-01 Thread Giuseppe D'Angelo via Interest
Il 01/11/19 17:42, Jason H ha scritto: I am using signals/slots in QML and the signal emissions are getting inverted. Here's my example: bool Socket::emitSignalForOp(const QByteArray &) "STF10" 10 bool Socket::emitSignalForOp(const QByteArray &) "PSF09" 11 STF10 necessarily comes after PSF09.

Re: [Interest] QGraphicsObject::boundingRect() called with different instance

2019-10-31 Thread Giuseppe D'Angelo via Interest
Il 31/10/19 01:55, Bob Hood ha scritto: I'm on Windows using Qt Creator 4.6.2. Apart from MSVC working on porting ASAN, there's a memory error detector available as part of Intel Studio. To me, valgrind/ASAN is still a _huge_ reason to prefer Linux development. If you can, get a testcase

Re: [Interest] QGraphicsObject::boundingRect() called with different instance

2019-10-30 Thread Giuseppe D'Angelo via Interest
On 30/10/2019 01:47, Bob Hood wrote: When I enter the constructor, I have a specific ‘this’ pointer that has the provided ‘size’ argument placed into its ‘entity_size’ member. However, when Qt subsequently invokes the boundingRect() override function, it’s an entirely different ‘this’ instance

Re: [Interest] QUdpSocket, QNetworkDatagram and QNetworkInterface

2019-10-30 Thread Giuseppe D'Angelo via Interest
Il 30/10/19 10:42, Nuno Santos ha scritto: My local network has the main modem, which is connected to the internet. Then, there is an older wifi router from linksys only serving as a cable lan switch. Do you have a clue why is this happening? This is completely ruining the previsibility I

Re: [Interest] Change in open-source licensing of Qt Wayland Compositor, Qt Application Manager and Qt PDF

2019-10-28 Thread Giuseppe D'Angelo via Interest
Hi Lars, Il 16/10/19 15:13, Lars Knoll ha scritto: As it turned out, there was some miscommunication that happened regarding the re-licensing of Qt PDF, and not all contributors were on board regarding the license change. That means we’re not changing the modules license and won’t be adding

Re: [Interest] Strange issue with Qt, OpenGL and remote desktop

2019-10-25 Thread Giuseppe D'Angelo via Interest
Il 25/10/19 08:56, Rainer Wiesenfarth ha scritto: This is (still) QGL..., we have not yet switched to the QOpenGL... classes. Ok, so, to test if my random guess is remotely correct: get your QGLContext and connect to ctx->contextHandle()'s signal called aboutToBeDestroyed (i.e. check if

Re: [Interest] Strange issue with Qt, OpenGL and remote desktop

2019-10-24 Thread Giuseppe D'Angelo via Interest
Il 24/10/19 17:57, Rainer Wiesenfarth ha scritto: We ran into a reproducible crash that is restricted to a certain scenario. The crash occurs in QGlContextPrivate::syncGlState() when trying to call glDisableVertexAttribArray(). It seems the function pointer is not available. However, there are

Re: [Interest] copying the object in the delegate

2019-10-20 Thread Giuseppe D'Angelo via Interest
Hi, Il 19/10/19 23:48, Dirk Hohndel ha scritto: That is of course ridiculously inefficient. Even ignoring the issue on my side that forces me to run the constructor every time the data() function is called, it seems silly to not just be able to have a local copy of that object for the delegate

Re: [Interest] TLS/SSL XML encryption security

2019-10-19 Thread Giuseppe D'Angelo via Interest
Il 19/10/19 14:35, Roland Hughes ha scritto: Actually it is of immense interest and value to the hundreds, perhaps thousands of Qt developers currently working on autonomous vehicles and attempting to integrate that with current infotainment systems. What's of little to no value are discussions

Re: [Interest] Attribute Qt::AA_UseOpenGLES must be set before QCoreApplication is created.

2019-10-18 Thread Giuseppe D'Angelo via Interest
Il 18/10/19 11:28, Thomas Sevaldrud ha scritto: I doesn't actually appear to have any negative consequences. Everything works as before, but our users are complaining about the warning :) The reason that these attributes are set after creating the QApplication is that I have a fallback

Re: [Interest] Licensing questions for iOS and Android

2019-10-08 Thread Giuseppe D'Angelo via Interest
Il 08/10/19 10:24, Yves Maurischat ha scritto: I dont think that you'll get a definitive answer from this list as The other side of the coin: this list is NOT for sales or detailed licensing questions. It's about technical questions related to the usage of Qt (and, specifically, the parts

Re: [Interest] Licensing

2019-10-07 Thread Giuseppe D'Angelo via Interest
Il 07/10/19 07:55, Uwe Rathmann ha scritto: Ah yes, sorry. My response was initially more explicit about FUD, before I decided, that it is not worth the effort. Huh? It was not my intention to spread FUD. I'm not telling anyone "buy a license, you never know..." or "stick to LGPL, don't

Re: [Interest] Licensing

2019-10-06 Thread Giuseppe D'Angelo via Interest
Il 06/10/19 11:56, Uwe Rathmann ha scritto: Maybe this presentation helps: https://www.youtube.com/watch?v=bwTlCBbB3RY Hey, I linked it two emails ago :-) -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33

Re: [Interest] Licensing

2019-10-05 Thread Giuseppe D'Angelo via Interest
Hi, Il 05/10/19 19:19, Jérôme Godbout ha scritto: This is the true problem: when you need a lawyer, a sale rep and Qt support just to determine what you should do or buy, you know this is one hell of a brain f*** problem. I think Qt might just be missing sales because of this. Make it clear,

Re: [Interest] TLS/SSL XML encryption security

2019-10-05 Thread Giuseppe D'Angelo via Interest
Il 05/10/19 02:17, Roland Hughes ha scritto: Sorry, I need to invert the quoted message so answers make sense. On 10/3/19 5:00 AM, Matthew Woehlke wrote: On 01/10/2019 20.47, Roland Hughes wrote: If they targeted something which uses XML documents to communicate, they don't need to brute

Re: [Interest] Licensing

2019-10-05 Thread Giuseppe D'Angelo via Interest
Hi, Il 05/10/19 13:17, Colin Worth ha scritto: My company has developed embedded and cross-platform GUI software using free open-source QT, the latest version. We are using the libraries that are included with the standard open-source installation. Soon we will freeze the version number,

Re: [Interest] CPU load in busy indicator widget based on Q(Variant)Animation

2019-10-04 Thread Giuseppe D'Angelo via Interest
Il 04/10/19 16:51, René J.V. Bertin ha scritto: I've isolated the class and its demonstrator, and added a few switches to assess performance (in terms of user experience and CPU load). The only way I found to limit the CPU load is by adding a delay after each frame render. 75ms of "thread

Re: [Interest] QPainter drawLine zValue?

2019-09-25 Thread Giuseppe D'Angelo via Interest
Il 25/09/19 19:13, Israel Brewster ha scritto: Is there a way to set the Z value of the line drawn by the QPainter::DrawLine() function? I have a library that uses the drawLine function to create a grid, and I would like to keep the grid on the top as I draw other things, if possible. Thanks.

Re: [Interest] Remove limitation of writing large qjson - QJson: Document too large to store in data structure

2019-09-22 Thread Giuseppe D'Angelo via Interest
Il 22/09/19 19:31, Tharindu Mathew ha scritto: I'm attempting to write a large json file >1GB. My hardware is comfortably capable of handling this. It seems qt doesn't like to write large json files. Is there an option I can set to remove this limitation? I'm using Qt 5.11 on Windows 10 x64.

Re: [Interest] Assertions from QQuickTableView::forceLayout()

2019-09-21 Thread Giuseppe D'Angelo via Interest
Il 21/09/19 05:40, Patrick Stinson ha scritto: In many cases this assertion happens when TableView.rows is out of sync with model.rowCount(), or TableView.columns is out of sync with model.columnCount(). The fact that these are out of sync at all seems to me to be a bug? Do you have a

Re: [Interest] QByteArray vs QString, arg, why is there no arg()?

2019-09-18 Thread Giuseppe D'Angelo via Interest
Il 18/09/19 13:16, Jason H ha scritto: What's the best way to zero-pad a QByteArray? What I want is QByteArray("%1").arg(6, 10, 10, '0') Mostly it has to do with the fact that QByteArray is sitting between two worlds; on one side it's just a container of bytes, on the other side it has

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-09-16 Thread Giuseppe D'Angelo via Interest
On 16/09/2019 18:51, Roland Hughes wrote: On 9/16/19 10:41 AM, Giuseppe D'Angelo wrote: On 16/09/2019 14:44, Roland Hughes wrote: On 9/16/19 5:00 AM,interest-requ...@qt-project.org wrote: Il 14/09/19 14:53, Roland Hughes ha scritto: Please keep in mind there is no version of SSL which is

Re: [Interest] mac app crashes if you plug in another monitor

2019-09-16 Thread Giuseppe D'Angelo via Interest
Hi, On 13/09/2019 16:49, David M. Cotter wrote: this seems unexpected Not a mac user myself, but if you have a minimal testcase, please consider submitting a bug report. HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group

Re: [Interest] Interest Digest, Vol 96, Issue 17

2019-09-16 Thread Giuseppe D'Angelo via Interest
On 16/09/2019 14:44, Roland Hughes wrote: On 9/16/19 5:00 AM, interest-requ...@qt-project.org wrote: Il 14/09/19 14:53, Roland Hughes ha scritto: Please keep in mind there is no version of SSL which is secure. Do you have any reference/source for this (quite extraordinary) claim? You know,

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-09-15 Thread Giuseppe D'Angelo via Interest
Il 14/09/19 14:53, Roland Hughes ha scritto: Please keep in mind there is no version of SSL which is secure. Do you have any reference/source for this (quite extraordinary) claim? Please also keep in mind the big systems are moving towards a TCP/IP software appliance within the OS. No

Re: [Interest] QML and sensitive data

2019-09-10 Thread Giuseppe D'Angelo via Interest
Il 10/09/19 15:44, Uwe Rathmann ha scritto: PS: could someone in charge of this mailinglist please have a look at the spam filter ? See https://bugreports.qt.io/browse/QTQAINFRA-3072 Thanks, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S.,

Re: [Interest] QML and sensitive data

2019-09-05 Thread Giuseppe D'Angelo via Interest
Il 05/09/19 14:28, Roland Hughes ha scritto: The best solution would be to use Widgets. A QLineEdit is just as secure as an equivalent QML control (which means, it's not secure). My 2 c, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB

Re: [Interest] Click and hold on close button

2019-08-29 Thread Giuseppe D'Angelo via Interest
Il 27/08/19 20:09, Murphy, Sean ha scritto: I've attached a sample application below that can be used to test. When you build and launch it, a QLabel blinks between green and "normal", switching palettes every second. On Windows, if you click and hold on any of those 3 buttons, and while holding

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Giuseppe D'Angelo via Interest
On 26/08/2019 18:04, Jason H wrote: "This is useful f.i. if the object needs to be exported from a dynamic library." what's "f.i."? "For instance"? Isn't that "e.g." (but definitely not i.e.) "For instance" / "for example" are precisly the English translations of exempli grati-a... Cheers,

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Giuseppe D'Angelo via Interest
On 26/08/2019 17:29, Matthew Woehlke wrote: Okay... that's both good and bad news... good that it's fixed, bad that it isn't available in a released version. BTW, what happened to the doc? Macros aren't class members... I'm thinking it's still https://bugreports.qt.io/browse/QTBUG-76822

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-23 Thread Giuseppe D'Angelo via Interest
On 24/08/2019 00:10, Matthew Woehlke wrote: Am I doing something wrong, or is it impossible to use Q_NAMESPACE correctly without platform-specific PP conditionals? I've fixed this in 5.14, see https://doc-snapshots.qt.io/qt5-dev/qobject.html#Q_NAMESPACE_EXPORT Cheers, -- Giuseppe D'Angelo

Re: [Interest] Add row to model *with data*?

2019-08-16 Thread Giuseppe D'Angelo via Interest
Il 15/08/19 23:42, Matthew Woehlke ha scritto: Is there any way, with the existing QAbstractItemModel API, to specify the data that the row should contain in the same call that adds the row? Even better, is there any way to ask the model to add a row, with data, but*not* specify where the row

Re: [Interest] Qt free software policy

2019-08-15 Thread Giuseppe D'Angelo via Interest
Il 15/08/19 11:14, Benjamin TERRIER ha scritto: Also I never asked for anything free here. I am asking if "GPLv3 only" is and will be the standard licensing scheme for new modules made by The Qt Company. I feel that it needs to be made clear, at least so that if an LGPL user need something he

Re: [Interest] Qt free software policy

2019-08-14 Thread Giuseppe D'Angelo via Interest
Il 14/08/19 22:05, Thiago Macieira ha scritto: I don't know if there's anything that is GPL-3.0 (without 2.0). There may be. Quick, incomplete list, from the back of my head: * QtVirtualKeyboard * The WebGL QPA plugin * The WebAssembly QPA plugin * QtCharts are all GPL3 (not 2). My 2 c, --

Re: [Interest] Overriding list properties in QML at initialisation

2019-08-14 Thread Giuseppe D'Angelo via Interest
Il 14/08/19 11:23, Ulf Hermann ha scritto: In the following example, I would expect the list to contain 2 elements instead of 5. What are your thoughts? Should I fill a bug report and try to provide a fix? Yes, that would be nice. Keep in mind that the default property should still behave the

Re: [Interest] Is it safe to call qRegisterMetaType() before main()?

2019-08-02 Thread Giuseppe D'Angelo via Interest
Il 31/07/19 23:22, Nikos Chantziaras ha scritto: static void constructor() __attribute__((constructor)); static void constructor(){    qmlRegisterType("ClassName", 1, 0, "ClassName"); } Maybe it helps. Thanks! I didn't know about that one. You can do that in pure C++, by the way; just

Re: [Interest] error: reference to 'byte' is ambiguous with C++17

2019-07-24 Thread Giuseppe D'Angelo via Interest
Il 24/07/19 09:25, Vadim Peretokin ha scritto: I'm compiling my Qt application with C++17 on Windows with the Qt-provided MinGW 7.3.0 and the Qt definition of a byte is conflicting with the new one defined in the standard (http://wg21.link/p0298r3). Here's a snippet of the issue:

Re: [Interest] Allow external library to generate OpenGL buffers in context of QOpenGLWidget

2019-07-15 Thread Giuseppe D'Angelo via Interest
Il 15/07/19 22:51, Pieter Barendrecht ha scritto: Hi Giuseppe, Thanks, but unfortunately that's not it. It turns out to be possible to specify an OpenGL context as an optional argument when invoking certain calls to OpenSubdiv, though I'm not quite sure what to pass on from within a

Re: [Interest] Allow external library to generate OpenGL buffers in context of QOpenGLWidget

2019-07-15 Thread Giuseppe D'Angelo via Interest
Il 04/07/19 11:17, Pieter Barendrecht ha scritto: I have a Qt application with a QOpenGLWidget for displaying 3D meshes. Now I'd like to use an external library (OpenSubdiv in this case, see e.g. http://graphics.pixar.com/opensubdiv/docs/api_overview.html) to generate additional OpenGL

Re: [Interest] Removal of convenience functions?

2019-07-03 Thread Giuseppe D'Angelo via Interest
On 03/07/2019 10:39, Michael Sué wrote: QDir ::operator=(const QString ) was removed in 5.13.0, a simple convenience function. What was the problem? Will everyone have to reinvent the wheel to get back such a convenience function in the future of Qt? It was not removed; you can still use it

Re: [Interest] Clarification on network security

2019-06-16 Thread Giuseppe D'Angelo via Interest
On 16/06/2019 13:41, Konrad Rosenbaum wrote: Bob, you already have really good answers from Elvis and Thiago - please ignore this thread! In short: use QSslSocket/QSslServer, set the protocol version to 1.2 or newer, deliver the server cert (not key) with your client software, authentication

Re: [Interest] OpenGL — using glDispatchComputeGroupSizeARB

2019-06-06 Thread Giuseppe D'Angelo via Interest
Hi, On 06/06/2019 17:05, Pieter Barendrecht wrote: I'm trying to figure out exactly what to include to be able to use the OpenGL command glDispatchComputeGroupSizeARB (which I'm positive is supported on my machine/system). Unfortunately, the typical extension workflow (i.e. #include in the

Re: [Interest] How does one use Q_ASSUME?

2019-05-26 Thread Giuseppe D'Angelo via Interest
Il 26/05/19 12:36, René J. V. Bertin ha scritto: Giuseppe D'Angelo via Interest wrote: Hi, On the other hand, Q_ASSUME(cond) tells the compiler that cond is true, After reading the MS doc I sort of understand how you can use the construct to implement a Q_UNREACHABLE (but in the example

Re: [Interest] How does one use Q_ASSUME?

2019-05-25 Thread Giuseppe D'Angelo via Interest
Hi, Il 25/05/19 10:12, René J.V. Bertin ha scritto: I can't seem to wrap my head around what one can do with Q_ASSUME, i.e. which will be the code for which the compiler won't emit code (and how the compiler could know not to emit code as a function of a runtime condition?!) Squinting at the

Re: [Interest] Connect to signal QProcess::finished on MSVC 2017

2019-05-15 Thread Giuseppe D'Angelo via Interest
Il 15/05/19 03:55, Konstantin Shegunov ha scritto: If you can't use qOverload or QOverload<...>::of(), then you have only two other options. Static casting the signal to the exact method type, or specifying the template parameter explicitly. Either: QObject::connect(process,

Re: [Interest] Connect to signal QProcess::finished on MSVC 2017

2019-05-15 Thread Giuseppe D'Angelo via Interest
Hi, Il 15/05/19 03:35, jlk ha scritto: However, on MSVC 2017, I've now read about a bug (in the C++ standard requirements, I guess) that prevents qOverload from working. Could someone suggest a workaround for my case?  I need to start an (asynchronous QProcess) and run a function when it

Re: [Interest] Don't get expected result from drawing StaticText with HTML

2019-05-14 Thread Giuseppe D'Angelo via Interest
Hi, On 14/05/2019 20:07, Martin Marmsoler wrote: I store this String in a QStaticText (staticText)and draw this text with painter->drawStaticText(QPoint(-w/2,-h/2),staticText); But the result is that the hole text is red and not only the part "arke" Which Qt version are you using, under

Re: [Interest] QFile/QDir: force move mode only?

2019-05-14 Thread Giuseppe D'Angelo via Interest
Hi, On 14/05/2019 15:47, Jason H wrote: I'd rather static bool QFile::isAtomicRename(const QString , cont QString ); So that the software can plan accordingly. Blindly executing won't allow the software to accomodate non-atomic renames (i.e. Display an alternate UI). It would also be nice if

Re: [Interest] QFile/QDir: force move mode only?

2019-05-13 Thread Giuseppe D'Angelo via Interest
On 13/05/2019 11:31, Alexander Dyagilev wrote: And yes, this is a really unwanted behavior and it was a short-sighted decision to make it behave so. QFile::rename should rename always or fail! It should never do completely different operation - copy! It doesn't solve the problem at hand

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Giuseppe D'Angelo via Interest
Hi, Il 07/05/19 16:08, Ola Røer Thorsen ha scritto: QByteArray bytes; // chosen because some api needs it later std::vector other_bytes; // maybe returned from some 3rd party library ... if (static_cast(bytes.size()) >= other_bytes.size()) {     ... } I guess i could write stuff like const

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Giuseppe D'Angelo via Interest
Il 07/05/19 17:02, Jason H ha scritto: Given how often I miss indexing negatives (to index from the end) It seems that we could do this in Qt6? /me ducks Note that you can (today!) use a range::view::reverse and pass positive indexes, counting backwards from the end. Adding this specific

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Giuseppe D'Angelo via Interest
On 07/05/2019 16:11, Bernhard Lindner wrote: 1) the the change to qsizetype as an index type has not happened yet, anyhow. It's still a huge question if it's doable in the first place. It is still discussed? I thought it is pretty high at the priority list anyway. No such patch has landed,

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Giuseppe D'Angelo via Interest
On 07/05/2019 14:13, Ola Røer Thorsen wrote: We build our code using gcc with the options "-Wall -Wextra -Werror" and this leads us to have to use static_cast for example when comparing int and unsigned int (or std::size_t). A mix of using std::array, std::string and QVector/QByteArray often

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Giuseppe D'Angelo via Interest
On 07/05/2019 14:42, Jason H wrote: Those will likely change to qsizetype in Qt 6. Which is still signed. This is disappointing. I'll only get half of the indexable space... can I get something in return? Having a negative index mechanism, like in Python, would be a way to alleviate some of

Re: [Interest] Interest Digest, Vol 92, Issue 5

2019-05-06 Thread Giuseppe D'Angelo via Interest
Il 05/05/19 15:07, Roland Hughes ha scritto: On 5/5/19 5:00 AM, interest-requ...@qt-project.org wrote: It makes for a lot of documentation in the embedded system world where every static_cast<>() has to be documented in the code and justified in a formal code review which produces even more

Re: [Interest] Qt World Summit 2019 - CfP

2019-05-02 Thread Giuseppe D'Angelo via Interest
Hi, On 23/04/2019 11:49, Kai Köhne wrote: For Berlin, we (again) have an open Call for Presentations. The deadline for submissions is already *3rd of May* - that is, Friday next week! https://blog.qt.io/blog/2019/03/27/qt-world-summit-2019-call-presentations-open/ Check out above link

Re: [Interest] QML preprocessing

2019-04-29 Thread Giuseppe D'Angelo via Interest
Hi, On 24/04/2019 21:23, Alexander Ivash wrote: Yeah, it could work in theory, but in practice there already a lot of places which would require such a modification. This solution just doesn't scale. Any preprocessing solution will require modifications at all call sites anyhow, wouldn't

Re: [Interest] Interest Digest, Vol 91, Issue 26

2019-04-18 Thread Giuseppe D'Angelo via Interest
On 18/04/2019 16:36, Roland Hughes wrote: The "filter" for SQL is the WHERE clause on the SELECT statement. A "filter" in the C++ world works on the result of the query. Worst case it doubles the memory and transfer resources required. When the goal is reduction of required resources, a filter

Re: [Interest] Issue with QSqlModel and QSortFilterModel

2019-04-18 Thread Giuseppe D'Angelo via Interest
Hi, On 18/04/2019 18:48, Scott Bloom wrote: Primarily because the user has the option of using wildcard or regexp, case insensitive or not, for multiple columns. So even if I upgrade Qt to the version that supports QregularExpression or REGEX, and also includes the wildcard to regex

Re: [Interest] Issue with QSqlModel and QSortFilterModel

2019-04-18 Thread Giuseppe D'Angelo via Interest
Il 17/04/19 23:40, Scott Bloom ha scritto: I have a source model, which is QSqlModel based, and a filter proxy model. Its not possible to make the filter part of the SQL query.. been down that road… Mind elaborating? Why not? Cheers, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com |

Re: [Interest] How to hide the QSGGeometryNode?

2019-04-15 Thread Giuseppe D'Angelo via Interest
Hi, Il 15/04/19 13:11, Denis Shienkov ha scritto: Yes, now I use this in a form of: boolCurveNode::isSubtreeBlocked()const { returnQSGGeometryNode::isSubtreeBlocked()||!m_visible; } voidCurveNode::setVisible(boolvisible) { if(m_visible==visible) return; m_visible=visible; if(!m_visible)

Re: [Interest] Random question Friday: Why no area() for Rects and Sizes?, path.join()?

2019-04-13 Thread Giuseppe D'Angelo via Interest
Il 12/04/19 17:09, Jason H ha scritto: I often miss Node and Python that has a path appender. This could have been tedious in the past but in C++11, QDir::join({parts, of, a, path, and, filename}) (declared as static QDir::join(const QStringList& parts);) I'm aware that Qt makes file path

Re: [Interest] How to hide the QSGGeometryNode?

2019-04-12 Thread Giuseppe D'Angelo via Interest
Hello, Il 12/04/19 09:19, Denis Shienkov ha scritto: I have an own class, derived from the QQuIckItem. This class contains a multiple child QSGGeometryNode-s. Each node has own fragment && vertex shader. Each node draws a curves, which are specified by a points set to a vertex array. So, I

Re: [Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Giuseppe D'Angelo via Interest
Il 11/04/19 00:18, Jason H ha scritto: In a QObject who is exported to QML, and is instantiated just below the top-level Window: // in the object's open() method: if (!_serialPort.open(QIODevice::ReadWrite)) qApp->quit(); // won't actually quit - no use if I can't use the serial port.

Re: [Interest] Using a QAbstractScrollArea

2019-03-23 Thread Giuseppe D'Angelo via Interest
Il 22/03/19 19:24, Bob Hood ha scritto: I'm having a bit of a brain fart here.  I have a third-party class I'd like to use that inherits from QAbstractScrollArea.  Qt Designer only knows about a QScrollArea, though, which inherits QAbstractScrollArea. How do I use this as a concrete Qt class

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-03-20 Thread Giuseppe D'Angelo via Interest
Il 20/03/19 19:41, Thiago Macieira ha scritto: Actually, it doesn't: 5.9 support ends in May 2020, OpenSSL 1.0 in Dec 2019. You're off by one year. 5.9.0 was released May 29, 2017. 5.9's support ends in May 2019 (probably a bit later because we are able to make the 5.9.9 release). Isn't the

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-03-20 Thread Giuseppe D'Angelo via Interest
Il 20/03/19 19:29, Thiago Macieira ha scritto: Qt 5.9's lifetime ends before OpenSSL 1.0's. Actually, it doesn't: 5.9 support ends in May 2020, OpenSSL 1.0 in Dec 2019. The reality is that if your software depends on multiple libraries, your deadline is the whichever EOL for those libraries

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-03-20 Thread Giuseppe D'Angelo via Interest
Hi, Il 20/03/19 18:23, David M. Cotter ha scritto: I understand LibreSSL has some advantages, is that worth checking out? Qt does not work with LibreSSL. Cheers, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France

Re: [Interest] Qt 5.9 and OpenSSL 1.1?

2019-03-20 Thread Giuseppe D'Angelo via Interest
Il 20/03/19 11:15, René J.V. Bertin ha scritto: I just learned that Qt 5.9 apparently doesn't build against OpenSSL 1.1 . Does anyone already have a fix for this? Which distribution already stopped shipping OpenSSL 1.0? Cheers, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior

Re: [Interest] Qt on direct compose

2019-03-18 Thread Giuseppe D'Angelo via Interest
Hi, On 18/03/2019 14:32, Pierre Lamot wrote: Before starting to perform a draw call, DComposition will inform you where it expect you to perform your drawing within the texture it gives you, like an OpenGL viewport. In most cases this will be (0,0) and will works out of the box. Though,

Re: [Interest] popcnt for QFlags

2019-03-15 Thread Giuseppe D'Angelo via Interest
Il 15/03/19 13:58, Konstantin Shegunov ha scritto: PS. should I just use qPopulationCount? Yes, this is public API. Cheers, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53,

Re: [Interest] [#ID:INC-1251018#] Installation issue.

2019-03-11 Thread Giuseppe D'Angelo via Interest
Il 12/03/19 02:11, Allan Sandfeld Jensen ha scritto: The problem is not the GCC version. It's the set of libraries provided by the old distribution. And I guess he could still build his own packages. The libraries would just use bundled qt copies if too old. Only the prebuilt packages have

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-02-22 Thread Giuseppe D'Angelo via Interest
Il 22/02/19 20:42, Jason H ha scritto: ''' When you use a layout, you do not need to pass a parent when constructing the child widgets. The layout will automatically reparent the widgets (using QWidget::setParent()) so that they are children of the widget on which the layout is installed.

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-02-22 Thread Giuseppe D'Angelo via Interest
Il 22/02/19 19:04, René J.V. Bertin ha scritto: I am not 100% sure, it's been a while, but I would assume that the layout is not the true parent, combined is. The docs aren't exactly clear on this subject, at least not with the sort of reading glasses I usually have on when I don't exactly

Re: [Interest] Replacement for Qt4 QMatrix4x4?

2019-02-22 Thread Giuseppe D'Angelo via Interest
Il 22/02/19 12:01, Uwe Rathmann ha scritto: Actually there are several versions of Qt5 that do not even compile when setting qreal=float. After reporting such a bug the fix did not even go into the relevant LTS version ( Qt 5.9 at that time ). Obviously building with qreal=float seems not to be

Re: [Interest] Replacement for Qt4 QMatrix4x4?

2019-02-22 Thread Giuseppe D'Angelo via Interest
Il 22/02/19 19:27, Matthew Woehlke ha scritto: We*almost* had that with QVectorNd and QMatrixNxN... until Qt5 went and made them float. Sigh. *Deliberately*, to target GPU programming, where the only things that matter (de facto) are floats. What I would*really* love is to see Eigen or

Re: [Interest] Replacement for Qt4 QMatrix4x4?

2019-02-22 Thread Giuseppe D'Angelo via Interest
Il 21/02/19 22:47, Matthew Woehlke ha scritto: So... after a full day of debugging, trying to port my Qt4 app to Qt5 and chase down a nasty case of stack clobbering, I discovered that the problem is that QMatrix4x4 changed from qreal to float. (Uh...why? I am not particularly amused by the loss

Re: [Interest] QSortFilterProxyModel

2019-02-19 Thread Giuseppe D'Angelo via Interest
Il 19/02/19 16:48, Christopher Probst ha scritto: Thank you Nils. My question may have have been incomplete. I am looking to filter the model through a regular expression on data contained in the header. I am not sure the method you suggested is the appropriate one. But it will certainly help.

<    1   2   3   >