El divendres, 6 de gener de 2023, a les 15:16:17 (CET), Robin Atwood va
escriure:
> I finally found time to make my trivial example run and it doesn't show the
> behaviour: I can highlight text in a QTreeWidgetItem. So I don't know what
> to do next. :(
You make your example less trivial until yo
I finally found time to make my trivial example run and it doesn't show the
behaviour: I can highlight text in a QTreeWidgetItem. So I don't know what to
do next. :(
Thanks for the help.
Robin
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.
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)
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?
>
> Can we get an example that we can build and test?
>
> Cheers,
> Albert
I will try and make one, but it will take some time.
Robin
El divendres, 30 de desembre de 2022, a les 16:14:02 (CET), Robin Atwood va
escriure:
> I have a current Gentoo system with Qt5.15 and KDE 5.26 and I have just
> rebuilt some RYO apps I originally wrote back in 2010 and updated to
> KF5 in 2018. The affected apps use a QTreeWidget and highlight va
I have a current Gentoo system with Qt5.15 and KDE 5.26 and I have just
rebuilt some RYO apps I originally wrote back in 2010 and updated to
KF5 in 2018. The affected apps use a QTreeWidget and highlight various
rows using QTreeWidgetItem::setForeground. This has always worked
until I rebuilt the a