Then I guess there is something in the QTabWidget painting code that ignores the palette. The QTabWidget is a compound widget - it consists of a QTabBar and a QStackedWidget that holds the widget...
d_stranz 15th August 2022, 21:11I changed all to red, but still is white,...
QPalette pal = tabWidget->palette();
for (int i=0; i<QPalette::NColorRoles; i++) {
pal.setColor(QPalette::ColorRole(i),...
I am sure that the internal implementation of QBitArray::testBit() is optimized for this type of operation. Just iterate over the bits from beginning to end or vice-versa. Anything you try to do to...
d_stranz 13th August 2022, 17:08Retrieve the QPalette for the QTabWidget after it is created, set the QPalette::Window color to whatever you want, then set it back on the QTabWidget:
tabWidget = new QTabWidget( this );...
How fast do it?
I must iterate over all bits?
It will be faster if will possible bits treat at 32 or even 64 bit chunks.
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
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.
Problem with applying texture to GridGeometry
15th June 2022 06:11 by mlte