Qt 6.12 LTS is out! See what's new in the release
blog
Compare two QVariant
-
Hi guys, in my legacy there compare two QVariant but now operators like <, >, <=, >= was deprecated. Can anyone help me?
QVariant q1(1); QVariant q2(2); bool result = q1 < 12; // operator < deprecated.Thanks a lot!
-
@jsulm Ohm thank you but that method since Qt 6.0. I'm using Qt 5.15.2. :-(
@Alexey-Serebryakov Then you will need to get the actual data from both variants and compare it.
-
Hi guys, in my legacy there compare two QVariant but now operators like <, >, <=, >= was deprecated. Can anyone help me?
QVariant q1(1); QVariant q2(2); bool result = q1 < 12; // operator < deprecated.Thanks a lot!
-
@jsulm Ohm thank you but that method since Qt 6.0. I'm using Qt 5.15.2. :-(
-
@jsulm Ohm thank you but that method since Qt 6.0. I'm using Qt 5.15.2. :-(
@Alexey-Serebryakov Then you will need to get the actual data from both variants and compare it.