i mean it could be a flatpak issue.
going from 6.7 to either 6.8 or 6.9 my qtablewidgets no longer "do" what QHeaderView::ResizeToContents says to do.
instead, all columns are the same size,...
It's good, I found it
select ->setItemData(2, QColor(255, 0, 0), Qt::ForegroundRole);
so solved thanks
I understand better with examples, if you have time
ludoQtCreator 2nd May 2025, 17:33when I do this it works:
select ->setItemData(1, QColor(255, 175, 0), Qt::TextColorRole);
but I get a warning:
[ 11%] Building CXX object CMakeFiles/test.dir/modifcons.cpp.o...
Normally, you would use a class derived from QDialog for this purpose. There are many examples in the Qt distribution.
d_stranz 2nd May 2025, 16:19Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at The Qt Company.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
QHeaderView::ResizeToContents fails on kubuntu 25.04 using flatpak kde runtime 6.9
Yesterday 23:39 by StephenHazel