Re: [Interest] Qt6 : QPA qxcb - Ubuntu 20.04 dev libraries dependencies

2021-01-26 Thread Nicholas Yue
Turns out when I pasted a block of sudo apt-get install command to install the required dependencies, not all of them ran. Once I have ensure that all the dependencies are properly installed, libqxcb*.so was built on Ubuntu 20.04 for Qt6 Cheers On Sun, 24 Jan 2021 at 15:02, Andreas Buhr wrote:

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

2021-01-26 Thread Kevin André
Hi, On Tue, Jan 26, 2021 at 5:38 PM Giuseppe D'Angelo via Interest wrote: > You've been bit by a combination of two things, one is Qt not supporting > the BIT column type natively (that's QTBUG-21326), and mapping it to a > string. The other that the string you're getting contains a NUL > (U+000

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

2021-01-26 Thread Robert Hairgrove
On 26.01.21 17:37, Giuseppe D'Angelo via Interest wrote: You've been bit (...) LOL ... pun was intentional, I assume? ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

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

2021-01-26 Thread Giuseppe D'Angelo via Interest
Hi, Il 26/01/21 16:52, Kevin André ha scritto: When reading a zero BIT value from the database, this outputs: getBool called for: QVariant(QString, "\u") getBool will convert QVariant(QString, "\u") to bool true The docs of toBool() claim that toBool should return false for a string v

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

[Interest] QVariant toBool() not working correctly?

2021-01-26 Thread 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 QVariant->bool conversion: bool Database::getBool