【问题标题】:is there any way to take screen shot of an element of qt? [duplicate]有没有办法截取qt元素的屏幕截图? [复制]
【发布时间】:2015-04-15 09:02:13
【问题描述】:

我正在尝试截取 qt 的元素。我想知道有什么办法 截屏 qt (QWidget) 的特定元素?

【问题讨论】:

标签: qt screenshot qwidget


【解决方案1】:

除了Plouff的评论,看看

void QWidget::render(QPaintDevice * target, const QPoint & targetOffset = QPoint(), const QRegion & sourceRegion = QRegion(), RenderFlags renderFlags = RenderFlags( DrawWindowBackground | DrawChildren ))

这可能没有区别,但值得一提。

【讨论】:

    猜你喜欢
    • 2019-07-10
    • 1970-01-01
    • 2015-11-13
    • 1970-01-01
    • 1970-01-01
    • 2018-12-23
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多