Re: [Interest] Qt Sql BLOB data converting

2022-11-28 Thread Christian Ehrlicher
Am 28.11.2022 um 20:31 schrieb Scott Bloom: -Original Message- From: Interest On Behalf Of Thiago Macieira Sent: Monday, November 28, 2022 11:21 AM To: interest@qt-project.org Subject: Re: [Interest] Qt Sql BLOB data converting On Monday, 28 November 2022 10:59:47 PST Christian

Re: [Interest] Qt Sql BLOB data converting

2022-11-28 Thread Christian Ehrlicher
Am 28.11.2022 um 19:46 schrieb Yauheni Pervenenka: Christian, thanks for your effort, db was simplified for test, is it possible to fix it on the client side? Any ideas, why is column considered as SQLITE_TEXT if it is BLOB? It's because of the dynamic typing feature of sqlite ( https://www.s

Re: [Interest] Qt Sql BLOB data converting

2022-11-28 Thread Christian Ehrlicher
Am 28.11.2022 um 19:40 schrieb Christian Ehrlicher: Am 28.11.2022 um 19:16 schrieb Yauheni Pervenenka via Interest: Thiago, hello, thanks for your reply, sorry have no instructions for create and insert, but have data base with one value which can't be parsed correct(db is cut to one

Re: [Interest] Qt Sql BLOB data converting

2022-11-28 Thread Christian Ehrlicher
Am 28.11.2022 um 19:16 schrieb Yauheni Pervenenka via Interest: Thiago, hello, thanks for your reply, sorry have no instructions for create and insert, but have data base with one value which can't be parsed correct(db is cut to one value for provide example) https://bugreports.qt.io/browse/QTB

Re: [Interest] Use SQLite math functions (-DSQLITE_ENABLE_MATH_FUNCTIONS) like sin and cos?

2022-10-25 Thread Christian Ehrlicher
Am 24.10.2022 um 19:58 schrieb Till Oliver Knoll: Dear all, What is the least complicated way to enable the math functions that come with SQLite, when it is compiled with the -DSQLITE_ENABLE_MATH_FUNCTIONS switch? My empirical experiments with the binary Qt 5.15.2 (open source) release (but al

Re: [Interest] QVariant toBool() not working correctly?

2021-01-26 Thread Christian Ehrlicher
Am 26.01.2021 um 16:52 schrieb Kevin André: Hi, I am reading a boolean value from a database column with SQL type "BIT" in MySQL. But I discovered that when a zero is stored in that column, my program apparently interprets that zero value as a boolean true value. I traced the problem to the QVar

Re: [Interest] Converting QStrings to const char *

2020-07-21 Thread Christian Ehrlicher
Am 21.07.2020 um 18:58 schrieb Doogster: My program uses both Qt and a C API that takes, as parameters, UTF-8 const char * strings. Is this the correct way to convert a QString containing a UTF8 string to that format? qString.toUtf8().constData() Wasn't this question already answered? https://

Re: [Interest] QDateTime uses different time zone offset prior to UNIX epoch?

2019-09-20 Thread Christian Ehrlicher
Am 21.09.2019 um 00:12 schrieb Thiago Macieira: On Friday, 20 September 2019 14:20:40 PDT Patrick Stinson wrote: QDateTime initializes with a different time zone offset when passed a QDate before versus after Jan 1 1970. The following line says it all: QDateTime(QDate(1969, 10, 14)).offsetFromU

Re: [Interest] QProcess overload slot connection

2019-03-13 Thread Christian Ehrlicher
Am 13.03.2019 um 20:02 schrieb Jason H: This does not give an error, but is also wrong, I think: connect(process, QOverload::of(&QProcess::finished), &loop, &QEventLoop::quit); QEventLoop::quit slot does not take any parameters What's wrong with this? The signal can have more parameters than t

[Interest] Need help with deprecated QVariant functions

2019-02-21 Thread Christian Ehrlicher
Hi, the two functions qVariantFromValue() and qVariantSetValue() are deprecated but the replacements QVariant::setValue() / fromValue() are using exactly those two functions... Those two functions are some of the last obsolete functions which did not yet get decorated with QT_DEPRECATED but si

Re: [Interest] new TableView columns hiding

2018-10-24 Thread Christian Ehrlicher
Am 24.10.2018 um 10:26 schrieb Shawn Rutledge: ue (have no idea, why) Why: because the layout algorithm could have a bad edge case if some columns are zero-width. (It keeps trying to fill the width of the view, but maybe it will never get there?) You not talk about QHeaderView but I think the

Re: [Interest] Qt5 CSS StyleSheet Variables

2018-05-21 Thread Christian Ehrlicher
Am 21.05.2018 um 15:47 schrieb Michael Jackson: Just to confirm, but does Qt accept CSS variables as describe here: ? I tried and I get the error that the style sheet could not be parsed. I have a style sheet with a LOT of color settings and h

[Interest] Qt 5.9.5 internal compiler error with msvc 2017 (15.7.1)

2018-05-17 Thread Christian Ehrlicher
Hi,   it tried to build Qt 5.9.5 with msvc 2017 15.7.1 on 32 bit an hit this internal compiler error:   ninja -t msvc -e environment.x86 -- "E:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX64\x86/cl.exe" /nologo /FC @obj/third_party/webrtc/ca

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-08 Thread Christian Ehrlicher
Am 08.05.2018 um 08:36 schrieb Thiago Macieira: On segunda-feira, 7 de maio de 2018 21:30:33 PDT Christian Ehrlicher wrote: I know that I should Q_ARG but I have problems using Q_ARG with a typedef/templated parameter therefore I need to use QArgument for at least this specific parameter and

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Christian Ehrlicher
Am 07.05.2018 um 21:40 schrieb Thiago Macieira: On Monday, 7 May 2018 11:24:55 PDT Christian Ehrlicher wrote: Hi, today I discovered that Q_QArgument does not handle a temporary (boolean) value as I would have expected it. I'm invoking the method similar to this: QArgument arg3(

[Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-07 Thread Christian Ehrlicher
Hi, today I discovered that Q_QArgument does not handle a temporary (boolean) value as I would have expected it. I'm invoking the method similar to this: QArgument arg3("bool", !inProgress); request.replySlot.invoke(m_objToInform, Qt::QueuedConnection, arg1, arg2, arg3); Changing it to bool

Re: [Interest] QMap::keys() / Qt6

2018-01-03 Thread Christian Ehrlicher
Am 02.01.2018 um 23:24 schrieb Giuseppe D'Angelo: But this doesn't really require a "generic iterator class", does it? The function looked for here is really some variation around this: template auto mapKeysToVector(const QMap &map) {     QVector result;     result.reserve(map.size());     st

[Interest] QMap::keys() / Qt6

2018-01-01 Thread Christian Ehrlicher
Hi, currently QMap::keys() returns a QList. Since some newer APIs already using QVector, a conversion from QList to QVector is needed which creates a double allocation when using the easy way (with a clazy warning and hopefully a comment in the review). So to avoid this, I have to write some c

Re: [Interest] Unescape hex escaped values in a QString

2017-10-22 Thread Christian Ehrlicher
Am 22.10.2017 um 18:38 schrieb Thiago Macieira: There's no function to decode this in QString or QByteArray for that matter. This has nothing to do with fromUtf8(). The decoding has to be done manually. Thx for the information, decoding should be easy. I just did not want to reinvent the wheel

[Interest] Unescape hex escaped values in a QString

2017-10-22 Thread Christian Ehrlicher
Hi, Is there a Qt-way to decode hex escaped values in a QString? In bug 61420 the udev filename in /dev/disk/by-label/ is encoded with ID_FS_LABEL_ENC which means all non-latin1 characters are hex-escaped. But since QFileInfo::fileName() already returns a QString I can't use QString::fromUtf8

Re: [Interest] QFileSystemWatcher and kate

2017-09-04 Thread Christian Ehrlicher
Am 04.09.2017 um 19:59 schrieb Christian Ehrlicher: Am 04.09.2017 um 02:17 schrieb Thiago Macieira: On Sunday, 3 September 2017 05:21:26 -03 Christian Ehrlicher wrote: Hi, I stumbled across a problem with QFileSystemWatcher on Linux. It looks like the inotify implementation does not honor a

Re: [Interest] QFileSystemWatcher and kate

2017-09-04 Thread Christian Ehrlicher
Am 04.09.2017 um 02:17 schrieb Thiago Macieira: On Sunday, 3 September 2017 05:21:26 -03 Christian Ehrlicher wrote: Hi, I stumbled across a problem with QFileSystemWatcher on Linux. It looks like the inotify implementation does not honor a file replace action as expected. I'm adding a

[Interest] QFileSystemWatcher and kate

2017-09-03 Thread Christian Ehrlicher
Hi, I stumbled across a problem with QFileSystemWatcher on Linux. It looks like the inotify implementation does not honor a file replace action as expected. I'm adding a file with addPath() to watch for changes. But after I edit the file with kate (or any other editor which saves the file in a

Re: [Interest] Qt-Installer / std::bad_array_new_length

2016-06-29 Thread Christian Ehrlicher
Am 29.06.2016 um 17:02 schrieb Thiago Macieira: On quarta-feira, 29 de junho de 2016 08:57:21 PDT Christian Ehrlicher wrote: But when compiling by my own or using the system-provided Qt libs (e.g. from openSUSE), those symbols are not available (tested with gcc 4.8, clang-3.7). I already

[Interest] Qt-Installer / std::bad_array_new_length

2016-06-28 Thread Christian Ehrlicher
Hi,   when using the Qt-Installer / precompiled Libraries from qt.io libQt5Gui.so has some references to std::bad_array_new_length:   :~/Qt5.6.0/5.6/gcc_64/lib$ objdump -T libQt5Gui.so.5.6.0 | grep bad_array_new_length