Qt 6.9.2, Windows.
I put a native widget (made native with winId()) into a QTabWidget, which is a child of some root QWidget.
It works OK, but if I add more widgets, their geometry breaks.
The...
You’re removing from renglones using the layout index: renglones.remove(contenedorRenglones->indexOf(renglon)). That index may not match the vector, so you end up erasing the wrong pointer and later...
Javierowess 1st October 2025, 07:49ScrollHandDrag controls the cursor, so setCursor on the view is ignored. Set the cursor on the viewport or subclass the view and force it in events, for example viewport()->setCursor(myOpenHand);...
Javierowess 1st October 2025, 07:47Qt 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.
Geometry of native widgets breaks when I put them into a non-native QTabWidget
2nd October 2025 12:07 by nikitagrgv