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. Blinking of pop-up widgets on Raspberry OS
Forum Updated to NodeBB v4.3 + New Features

Blinking of pop-up widgets on Raspberry OS

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 2 Posters 3.1k Views
  • 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.
  • I IknowQT

    A class that inherits qdialog from Raspberry Pi OS is popped up.
    The popped up widget has the focus, and the controls of other widgets cannot be selected.
    The problem is that when I click on another control, the popup widget flickers.
    It seems to be a problem with focus shift.

    There was no problem when running on Linux OS, and it worked well on Windows as well.

    ui.setupUi(this);
    this->setWindowFlags( Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);
    
    ===================
    
    if (!m_wSTCMenu->isActiveWindow())
    	{
    		QPoint position(this->ui.frm_Bottom->geometry().x(), this->ui.frm_Bottom->geometry().top() - m_wSTCMenu->size().height());
    		position = mapToGlobal(position);
    
    		m_wSTCMenu->move(position);
    		m_wSTCMenu->exec();
    	}
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

    The problem is that when I click on another control, the popup widget flickers

    Do you mean on other widget (other window than the dialog)?
    If so then this is normal behaviour of the window manager used. You have same on Windows for example.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    I 1 Reply Last reply
    0
    • jsulmJ jsulm

      @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

      The problem is that when I click on another control, the popup widget flickers

      Do you mean on other widget (other window than the dialog)?
      If so then this is normal behaviour of the window manager used. You have same on Windows for example.

      I Offline
      I Offline
      IknowQT
      wrote on last edited by
      #3

      @jsulm said in Blinking of pop-up widgets on Raspberry OS:

      Do you mean on other widget (other window than the dialog)?
      If so then this is normal behaviour of the window manager used. You have same on Windows for example.

      It is a widget popped up on the qt widget and it is clicked outside the popup widget area.
      On Windows, this doesn't happen.

      problem gif

      Can you check the gif attached to the link?

      jsulmJ 1 Reply Last reply
      0
      • I IknowQT

        @jsulm said in Blinking of pop-up widgets on Raspberry OS:

        Do you mean on other widget (other window than the dialog)?
        If so then this is normal behaviour of the window manager used. You have same on Windows for example.

        It is a widget popped up on the qt widget and it is clicked outside the popup widget area.
        On Windows, this doesn't happen.

        problem gif

        Can you check the gif attached to the link?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @IknowQT I think this is the behaviour of your window manager, not Qt.
        Can you test with other, non-Qt application, with a modal dialog?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        I 1 Reply Last reply
        1
        • jsulmJ jsulm

          @IknowQT I think this is the behaviour of your window manager, not Qt.
          Can you test with other, non-Qt application, with a modal dialog?

          I Offline
          I Offline
          IknowQT
          wrote on last edited by
          #5

          @jsulm

          I got a hint from what you said, so I made the screen a little smaller instead of full screen.

          problem2.gif

          Is it because the Standard Curve widget behind is not in Modal shape?

          jsulmJ 1 Reply Last reply
          0
          • I IknowQT

            @jsulm

            I got a hint from what you said, so I made the screen a little smaller instead of full screen.

            problem2.gif

            Is it because the Standard Curve widget behind is not in Modal shape?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

            Is it because the Standard Curve widget behind is not in Modal shape?

            What do you mean?
            A dialog is either modal or not.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            I 1 Reply Last reply
            1
            • jsulmJ jsulm

              @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

              Is it because the Standard Curve widget behind is not in Modal shape?

              What do you mean?
              A dialog is either modal or not.

              I Offline
              I Offline
              IknowQT
              wrote on last edited by
              #7

              @jsulm

              So, is there any way to solve this problem?
              i want to do full screen

              jsulmJ 1 Reply Last reply
              0
              • I IknowQT

                @jsulm

                So, is there any way to solve this problem?
                i want to do full screen

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @IknowQT Do you use a window manager?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                I 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @IknowQT Do you use a window manager?

                  I Offline
                  I Offline
                  IknowQT
                  wrote on last edited by
                  #9

                  @jsulm

                  no it doesn't matter
                  Do I need to change the settings on Raspberry OS?

                  jsulmJ 1 Reply Last reply
                  0
                  • I IknowQT

                    @jsulm

                    no it doesn't matter
                    Do I need to change the settings on Raspberry OS?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

                    no it doesn't matter

                    What does this mean? Yes or no?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    I 3 Replies Last reply
                    0
                    • jsulmJ jsulm

                      @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

                      no it doesn't matter

                      What does this mean? Yes or no?

                      I Offline
                      I Offline
                      IknowQT
                      wrote on last edited by
                      #11

                      @jsulm

                      No no

                      1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

                        no it doesn't matter

                        What does this mean? Yes or no?

                        I Offline
                        I Offline
                        IknowQT
                        wrote on last edited by
                        #12

                        @jsulm

                        I tried removing the taskbar of Raspbian and running it, and the same symptoms appear.
                        Is there any other way?

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @IknowQT said in Blinking of pop-up widgets on Raspberry OS:

                          no it doesn't matter

                          What does this mean? Yes or no?

                          I Offline
                          I Offline
                          IknowQT
                          wrote on last edited by
                          #13

                          @jsulm

                          Is there no way in qt?
                          I tested the same in Ubuntu OS, but the same phenomenon as in Raspbian does not appear.
                          For me this is a very important issue.
                          You may need to change your development direction and environment.

                          jsulmJ 1 Reply Last reply
                          0
                          • I IknowQT

                            @jsulm

                            Is there no way in qt?
                            I tested the same in Ubuntu OS, but the same phenomenon as in Raspbian does not appear.
                            For me this is a very important issue.
                            You may need to change your development direction and environment.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            @IknowQT What graphics environment and window managher do you use?
                            Do you use X server?

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            I 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @IknowQT What graphics environment and window managher do you use?
                              Do you use X server?

                              I Offline
                              I Offline
                              IknowQT
                              wrote on last edited by
                              #15

                              @jsulm

                              How can I check?
                              I'm not very good with Linux commands.

                              jsulmJ 1 Reply Last reply
                              0
                              • I IknowQT

                                @jsulm

                                How can I check?
                                I'm not very good with Linux commands.

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                @IknowQT You should know what you installed.
                                What does

                                ps ax | grep X
                                

                                output?

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                I 1 Reply Last reply
                                0
                                • jsulmJ jsulm

                                  @IknowQT You should know what you installed.
                                  What does

                                  ps ax | grep X
                                  

                                  output?

                                  I Offline
                                  I Offline
                                  IknowQT
                                  wrote on last edited by
                                  #17

                                  @jsulm

                                   539 tty7     Ssl+   0:00 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
                                    618 ?        Ssl    0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
                                    845 ?        Sl     0:02 lxpanel --profile LXDE-pi
                                    846 ?        Sl     0:00 pcmanfm --desktop --profile LXDE-pi
                                   4762 pts/0    S+     0:00 grep --color=auto X
                                  
                                  
                                  jsulmJ 1 Reply Last reply
                                  0
                                  • I IknowQT

                                    @jsulm

                                     539 tty7     Ssl+   0:00 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
                                      618 ?        Ssl    0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
                                      845 ?        Sl     0:02 lxpanel --profile LXDE-pi
                                      846 ?        Sl     0:00 pcmanfm --desktop --profile LXDE-pi
                                     4762 pts/0    S+     0:00 grep --color=auto X
                                    
                                    
                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #18

                                    @IknowQT So, you have X server running and you're using LXDE desktop environment.
                                    You could try with some other desktop environment to see whether it behaves in the same way (XFCE for example).

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    I 1 Reply Last reply
                                    0
                                    • jsulmJ jsulm

                                      @IknowQT So, you have X server running and you're using LXDE desktop environment.
                                      You could try with some other desktop environment to see whether it behaves in the same way (XFCE for example).

                                      I Offline
                                      I Offline
                                      IknowQT
                                      wrote on last edited by IknowQT
                                      #19

                                      @jsulm

                                      Are you saying you need to test on a different version of the OS?

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • I IknowQT

                                        @jsulm

                                        Are you saying you need to test on a different version of the OS?

                                        jsulmJ Offline
                                        jsulmJ Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #20

                                        @IknowQT No. I did not say anything about a different OS version. I only suggested to test with another desktop environment (window manager). On Linux there are many different desktop environments...

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        I 1 Reply Last reply
                                        0
                                        • jsulmJ jsulm

                                          @IknowQT No. I did not say anything about a different OS version. I only suggested to test with another desktop environment (window manager). On Linux there are many different desktop environments...

                                          I Offline
                                          I Offline
                                          IknowQT
                                          wrote on last edited by
                                          #21

                                          @jsulm

                                          Even after changing the window manager to openbox, the flickering phenomenon appears.

                                          *raspberry board version
                                          pi4 model b
                                          *raspberry os version
                                          buster 5.10.75-v71+

                                          Are there any window managers you can recommend for my development environment?

                                          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