Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix centering of inner circle in PhotoVideoControl
The inner circle in the PhotoVideoControl widget was not always perfectly centered due to a bug in Qt's anchors.centerIn property (QTBUG-95224) which causes it to return integer positions instead of subpixel values. Implemented a workaround by manually calculating the center position, ensuring exact centering regardless of parent and child dimensions and DPI scaling. This fix should be reverted once QGC moves to Qt 6.8.1 or higher, where the underlying Qt bug has been resolved. Related Qt bug: https://bugreports.qt.io/browse/QTBUG-95224 Qt fix commit: qt/qtdeclarative@fd23a22
- Loading branch information