I've solved this. In earlier Qt versions, the style determined the orientation of the progress bar by checking the 'orientation' field in the QStyleOptionProgressBar instance. In Qt6, it seems this field has been eliminated and the bar's orientation is now captured in the 'state' member of the QStyleOptionProgressBar. Ensure that the State_Horizontal bit is set here; otherwise, the Fusion style will default to treating the progress bar as vertically oriented.
Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks