This type is used for capturing a window. 更多...
import 语句: | import QtMultimedia |
Since: | Qt 6.6 |
实例化: | QWindowCapture |
WindowCapture captures a window. It is managed by MediaCaptureSession where the captured window can be displayed in a video preview object or recorded to a file.
另请参阅 CaptureSession and CapturableWindow .
active : bool |
Describes whether the capturing is currently active.
error
:
enumeration
|
Returns a code of the last error.
errorString
:
string
|
Returns a human readable string describing the cause of error.
window : Window |
描述用于捕获的窗口。
另请参阅 QtMultimedia::WindowCapture::capturableWindows .
list < CapturableWindow > capturableWindows () |
Returns a list of CapturableWindow objects that is available for capturing.
start () |
stop () |