[Development] QToolButton::checkStateSet missing in Linux source build of Qt5.15.13-gpl?

Thiago Macieira thiago.macieira at intel.com
Tue May 7 22:29:16 CEST 2024


On Tuesday 7 May 2024 12:20:26 GMT-7 Dennis Lühring wrote:
> then something is strange
> 
> 1. according to https://doc.qt.io/qt-5/qtoolbutton.html: QToolButton is
> derived from QAbstractButton which contains checkStateSet 

[Re-adding the list, but I think dev is the wrong list]

QAbstractButton is irrelevant here. Your error message was 
QToolButton::checkStateSet() *specifically* wasn't defined. It's not expected to 
because it wasn't added until 6.3.

The only explanation I can come up with is that the headers don't match the 
library.

> 2. my standard
> SUSE-Tumbleweed Qt5 Package widgets lib contains the Method
> /usr/lib64/libQt5Widgets.so.5.15.13

Indeed, so does it in mine:
$ nm -DC /usr/lib64/libQt5Widgets.so.5.15.13 | grep QToolButton::checkState
000000000038eb40 T QToolButton::checkStateSet()

That's a non-standard patch. It doesn't exist in the official 5.15.13 version.

Someone backported an extra patch onto that release (it's https://
invent.kde.org/qt/qt/qtbase/-/commit/f74d263ff7de636e00094040a795b0763af41772). 
I don't know why they did that, but that's not important. The diagnosis is the 
same: your headers don't match the library you have. You have to match.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240507/34882d82/attachment.bin>


More information about the Development mailing list