Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 QScrollArea 之上创建一个自定义 QScrollBar。我做到了scroll_bar->setParent(acroll_area),现在 ScrollBar::painEvent 被绘制在 QScrollArea 上,唯一的问题是它被绘制在左侧。我如何让它在右侧绘画。
scroll_bar->setParent(acroll_area)
RA 是正确的,我调用了 setGeometry,它运行良好 :) (如果你想写你自己的答案,我会接受它)