Re: QTreeWidgetItem::setForeground no longer works with latest KF5

2023-01-03 Thread Robin Atwood
On Tue, 3 Jan 2023 19:58:42 +0100 Tomas Mecir wrote: > The app doesn't seem to do anything when started, but I'll leave that > part to you to figure out. Thanks, Tomas. It needed a "main.moc" and the SKIP_AUTOMOC removed. And you're right, it doesn't do anything. Sigh.

Re: QTreeWidgetItem::setForeground no longer works with latest KF5

2023-01-03 Thread Tomas Mecir
You're not calling MOC. If using cmake: include(KDECMakeSettings) should do the trick. You'll need to also #include "test.moc" at the end of that cpp file. The entire CMakeLists.txt that works for me is: project(test) cmake_minimum_required(VERSION 2.8.12) find_package(ECM 0.0.10 REQUIRED CONFIG)

Re: QTreeWidgetItem::setForeground no longer works with latest KF5

2023-01-03 Thread Robin Atwood
I have made a bare-bones version of my code and guess what: it won't link! I get messages: /usr/src/dev/kde4/qtwitest/src/main.cpp:17: undefined reference to `vtable for QtwiTest' This is usually caused by not supplying a constructor body, but I have done that. Can anyone see what is wrong?