Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Width and height warnings when configuring full screen
Forum Updated to NodeBB v4.3 + New Features

Width and height warnings when configuring full screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 655 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    myguysi
    wrote on last edited by myguysi
    #1

    I'm developing my first app with PySide6/QML running on a Raspberry Pi 4 and I'm having an issue when configuring it to run in full screen. I'm seeing the following warnings printed out multiple times in the console when the application starts and again after button interactions.

    qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid width: 0
    qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid height: 0
    

    It's more of an annoyance than anything adding noise while I'm trying to debug printing to the console but I've yet to find a solution and would appreciate any suggestions. Here's the code:

    ApplicationWindow {
      id: root
      width: 700
      height: 400
      visible: true
      visibility: Window.FullScreen
      ...
    }
    
    Pl45m4P 1 Reply Last reply
    0
    • M myguysi

      I'm developing my first app with PySide6/QML running on a Raspberry Pi 4 and I'm having an issue when configuring it to run in full screen. I'm seeing the following warnings printed out multiple times in the console when the application starts and again after button interactions.

      qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid width: 0
      qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid height: 0
      

      It's more of an annoyance than anything adding noise while I'm trying to debug printing to the console but I've yet to find a solution and would appreciate any suggestions. Here's the code:

      ApplicationWindow {
        id: root
        width: 700
        height: 400
        visible: true
        visibility: Window.FullScreen
        ...
      }
      
      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @myguysi said in Width and height warnings when configuring full screen:

      qt.qpa.wayland

      Unless somebody else knows better, I would say it's a Wayland issue.
      Wayland doesn't let you update and move the window as you wish.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • Axel SpoerlA Online
        Axel SpoerlA Online
        Axel Spoerl
        Moderators
        wrote on last edited by
        #3

        Please try this example. If it causes the same qpa errors, you can file a bug.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        1
        • Z Offline
          Z Offline
          ziyi
          wrote on last edited by
          #4

          I encountered the same problem using pyqt6 on Raspberry Pi 4b.
          system:Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt2 (2024-10-01) aarch64 GNU/Linux
          python version:3.12.5
          pyqt6 version:6.7.1

              def init_ui(self):
                  self.setWindowTitle('Camera')
                  self.setGeometry(100, 100, 300, 400)
                  self.showFullScreen()
          
          qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid width: 0
          qt.qpa.wayland: Configure event with maximized or fullscreen state contains invalid height: 0
          
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved