- 
    Bug 
- 
    Resolution: Fixed
- 
    P2: Important 
- 
    6.5.4, 6.5.5
- 
    None
- 
        
- 
        fcdce53b8 (dev), 217df8f83 (dev), 7a805b99f (6.8), 2cb772c04 (6.8)
Description:-
The Qt ScreenCapture example, designed to capture the screen content, encounters a critical issue preventing it from fulfilling its intended functionality. Upon running the application, an error is thrown, stating "failed to grab Screen content."
Steps to Reproduce:
- Build and Run the Qt ScreenCapture example on Linux(Wayland).
Expected Behavior:
The application should successfully capture the screen content without any errors.
Actual Behavior:
The application throws an error message: "failed to grab Screen content" immediately upon execution, indicating a failure to capture the screen content.
Environment:
- Qt Version: 6.5.4
- Operating System: Ubuntu 22.04
- duplicates
- 
                    QTBUG-34976 Missing QScreen::grabWindow() support -         
- Open
 
-         
- is duplicated by
- 
                    QTBUG-128879 Cannot grab the screen content on Linux with Wayland display system -           
- Closed
 
-         
- 
                    QTBUG-136104 Screen Capture Example – Fails to capture the screen. -           
- Closed
 
-         
- relates to
- 
                    QTBUG-125031 Update the limitations section in QScreenCapture documentation -         
- Closed
 
-         
- 
                     QTQAINFRA-6069
        Qt 6.5.4 LTS Testing QTQAINFRA-6069
        Qt 6.5.4 LTS Testing-           
- Open
 
-         
- 
                     QTQAINFRA-6138
        Qt 6.5.5 LTS Testing QTQAINFRA-6138
        Qt 6.5.5 LTS Testing-           
- Open
 
-         
- resulted in
- 
                    QTBUG-126685 Document screen capture limitation on Wayland -         
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-121452 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 538421,32 | Add pipewire screen capture on Wayland | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 | 
| 566103,5 | Provisioning: install pipewire dev packages on Linux | dev | qt/qt5 | Status: MERGED | +2 | 0 | 
| 570697,3 | Provisioning: install pipewire dev packages on Linux | 6.8 | qt/qt5 | Status: MERGED | +2 | 0 | 
| 570704,2 | Add pipewire screen capture on Wayland | 6.8 | qt/qtmultimedia | Status: MERGED | +2 | 0 |