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. Qt5 error using Geant4: This plugin does not support propagateSizeHints()
Forum Updated to NodeBB v4.3 + New Features

Qt5 error using Geant4: This plugin does not support propagateSizeHints()

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 7.5k Views 1 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.
  • L Offline
    L Offline
    luca29q
    wrote on 11 Oct 2023, 12:51 last edited by
    #1

    Hi all,

    When I executed example B1 of Geant4 using Qt version 5.12.8 on WSL1 of Windows 10, I encountered the following error. It seems to be related to Qt, so I came here looking for advice.

    This plugin does not support propagateSizeHints()
    

    Any ideas and suggestions would be appriciated. If any additional information is required, I will provide it as soon as I see it. Thanks in advance.

    P 1 Reply Last reply 11 Oct 2023, 13:08
    0
    • L luca29q
      11 Oct 2023, 12:51

      Hi all,

      When I executed example B1 of Geant4 using Qt version 5.12.8 on WSL1 of Windows 10, I encountered the following error. It seems to be related to Qt, so I came here looking for advice.

      This plugin does not support propagateSizeHints()
      

      Any ideas and suggestions would be appriciated. If any additional information is required, I will provide it as soon as I see it. Thanks in advance.

      P Offline
      P Offline
      Pl45m4
      wrote on 11 Oct 2023, 13:08 last edited by
      #2

      @luca29q

      Are there any limitations? Does your program not work after this message shows up?
      Have you tried looking for a solution?

      • https://stackoverflow.com/questions/69927654/this-plugin-does-not-support-propagatesizehints-calling-exec-on-qdialog

      propagateSizeHints() is a function used in QPlatformWindow.

      • https://doc.qt.io/qt-6/qpa.html

      I think you can ignore that warning like others do, unless something really crashes:

      • https://github.com/marthoc/hassio-addons/issues/70

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

      ~E. W. Dijkstra

      L 1 Reply Last reply 14 Oct 2023, 07:26
      0
      • P Pl45m4
        11 Oct 2023, 13:08

        @luca29q

        Are there any limitations? Does your program not work after this message shows up?
        Have you tried looking for a solution?

        • https://stackoverflow.com/questions/69927654/this-plugin-does-not-support-propagatesizehints-calling-exec-on-qdialog

        propagateSizeHints() is a function used in QPlatformWindow.

        • https://doc.qt.io/qt-6/qpa.html

        I think you can ignore that warning like others do, unless something really crashes:

        • https://github.com/marthoc/hassio-addons/issues/70
        L Offline
        L Offline
        luca29q
        wrote on 14 Oct 2023, 07:26 last edited by luca29q
        #3

        Hi @Pl45m4 ,

        Thank you very much. How can I check if there exist any limitations? I am not quite sure but I don't remember doing any extra settings on Qt5. My program does not work and the console hangs after the message shows up.

        According to the first website you listed, I have added export QT_QPA_PLATFORM='offscreen' to my .bashrc file, but the same error This plugin does not support propagateSizeHints() is output whether the line is commented out or not.

        I also added export XDG_RUNTIME_DIR=/tmp to the .bashrc file according to https://github.com/cuthbertLab/music21/issues/260#issuecomment-834489173. It seems necessary to set XDG_RUNTIME_DIR as the path to directory where temporary files for the root user are stored. I tried but it didn't work.

        For the selection of plugin classes mentioned in https://doc.qt.io/qt-6/qpa.html, I have set QT_QPA_PLATFORM to offscreen and it doesn't work, as described above. If I set QT_QPA_PLATFORM to qwindows, another error occurs, with the output shown below.

        qt.qpa.plugin: Could not find the Qt platform plugin "qwindows" in ""
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
        
        Available platform plugins are: dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
        
        Aborted (core dumped)
        

        I used sudo apt insatll qt5* to install Qt5 on WSL1 and I have no idea about why it does not support the function used in QPlatformWindow.

        If everything was going well with my program, there would be a visual interface but that is not the case. Maybe I have to fix this so I can use my program properly.

        Thanks again for your time.

        S 1 Reply Last reply 21 Dec 2023, 18:16
        0
        • L luca29q
          14 Oct 2023, 07:26

          Hi @Pl45m4 ,

          Thank you very much. How can I check if there exist any limitations? I am not quite sure but I don't remember doing any extra settings on Qt5. My program does not work and the console hangs after the message shows up.

          According to the first website you listed, I have added export QT_QPA_PLATFORM='offscreen' to my .bashrc file, but the same error This plugin does not support propagateSizeHints() is output whether the line is commented out or not.

          I also added export XDG_RUNTIME_DIR=/tmp to the .bashrc file according to https://github.com/cuthbertLab/music21/issues/260#issuecomment-834489173. It seems necessary to set XDG_RUNTIME_DIR as the path to directory where temporary files for the root user are stored. I tried but it didn't work.

          For the selection of plugin classes mentioned in https://doc.qt.io/qt-6/qpa.html, I have set QT_QPA_PLATFORM to offscreen and it doesn't work, as described above. If I set QT_QPA_PLATFORM to qwindows, another error occurs, with the output shown below.

          qt.qpa.plugin: Could not find the Qt platform plugin "qwindows" in ""
          This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
          
          Available platform plugins are: dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
          
          Aborted (core dumped)
          

          I used sudo apt insatll qt5* to install Qt5 on WSL1 and I have no idea about why it does not support the function used in QPlatformWindow.

          If everything was going well with my program, there would be a visual interface but that is not the case. Maybe I have to fix this so I can use my program properly.

          Thanks again for your time.

          S Offline
          S Offline
          serrano1004
          wrote on 21 Dec 2023, 18:16 last edited by
          #4

          @luca29q @Pl45m4

          I have tried all that @Pl45m4 tried.
          One thing works for me.
          export QT_QPA_PLATFORM=wayland
          Obviously, install wayland package.

          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