Is there any ways to remove the header section of the recording app (QtMultimedia)
-
Hello!
I'm new to QtMultimedia. I want to record my app window, and I found a good example to start QML Video Recorder example. I tried to build and run the example, for a reason I want to remove the header on the output video (this picture is just a example)
I wonder if there is any ways to remove the header or at least I can customize the recording app window's height, width and resolution.
I'm sorry for my bad English, but I appreciate any help. Thank you! -
@lnt750333 The "header section" is the window title bar provided to your top level widget by whatever window manager is involved. What you want to try is the Qt::FramelessWindowHint on your top-level window.
See also the Window Flags Example
-
@ChrisW67 Thanks for your response! Using Qt::FramelessWindowHint flags can help me in my case.
But for further understanding, in case I want to record other apps then I have to remove its header section (such as the OBS header in above picture), I wonder If I could set this similar flags to CapturableWindow when I get it from capturableWindows(). Or QWindowCapture, QMediaRecorder had the other ways to help me with this?
Please feel free to share, I’m grateful.