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 2.7k 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 Offline
    I Offline
    IknowQT
    wrote on 13 Jan 2022, 07:02 last edited by IknowQT
    #1

    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();
    	}
    
    J 1 Reply Last reply 13 Jan 2022, 07:28
    0
    • I IknowQT
      13 Jan 2022, 07:02

      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();
      	}
      
      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Jan 2022, 07:28 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 13 Jan 2022, 07:44
      0
      • J jsulm
        13 Jan 2022, 07:28

        @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 13 Jan 2022, 07:44 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?

        J 1 Reply Last reply 13 Jan 2022, 07:49
        0
        • I IknowQT
          13 Jan 2022, 07:44

          @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?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 13 Jan 2022, 07:49 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 13 Jan 2022, 08:14
          1
          • J jsulm
            13 Jan 2022, 07:49

            @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 13 Jan 2022, 08:14 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?

            J 1 Reply Last reply 13 Jan 2022, 08:15
            0
            • I IknowQT
              13 Jan 2022, 08:14

              @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?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 13 Jan 2022, 08:15 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 13 Jan 2022, 08:20
              1
              • J jsulm
                13 Jan 2022, 08:15

                @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 13 Jan 2022, 08:20 last edited by
                #7

                @jsulm

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

                J 1 Reply Last reply 13 Jan 2022, 08:23
                0
                • I IknowQT
                  13 Jan 2022, 08:20

                  @jsulm

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

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 13 Jan 2022, 08:23 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 13 Jan 2022, 08:24
                  0
                  • J jsulm
                    13 Jan 2022, 08:23

                    @IknowQT Do you use a window manager?

                    I Offline
                    I Offline
                    IknowQT
                    wrote on 13 Jan 2022, 08:24 last edited by
                    #9

                    @jsulm

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

                    J 1 Reply Last reply 13 Jan 2022, 08:27
                    0
                    • I IknowQT
                      13 Jan 2022, 08:24

                      @jsulm

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

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 13 Jan 2022, 08:27 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 13 Jan 2022, 08:30
                      0
                      • J jsulm
                        13 Jan 2022, 08:27

                        @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 13 Jan 2022, 08:30 last edited by
                        #11

                        @jsulm

                        No no

                        1 Reply Last reply
                        0
                        • J jsulm
                          13 Jan 2022, 08:27

                          @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 13 Jan 2022, 09:05 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
                          • J jsulm
                            13 Jan 2022, 08:27

                            @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 14 Jan 2022, 00:05 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.

                            J 1 Reply Last reply 14 Jan 2022, 06:21
                            0
                            • I IknowQT
                              14 Jan 2022, 00:05

                              @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.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 14 Jan 2022, 06:21 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 17 Jan 2022, 00:51
                              0
                              • J jsulm
                                14 Jan 2022, 06:21

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

                                I Offline
                                I Offline
                                IknowQT
                                wrote on 17 Jan 2022, 00:51 last edited by
                                #15

                                @jsulm

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

                                J 1 Reply Last reply 17 Jan 2022, 08:49
                                0
                                • I IknowQT
                                  17 Jan 2022, 00:51

                                  @jsulm

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

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 17 Jan 2022, 08:49 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 17 Jan 2022, 23:30
                                  0
                                  • J jsulm
                                    17 Jan 2022, 08:49

                                    @IknowQT You should know what you installed.
                                    What does

                                    ps ax | grep X
                                    

                                    output?

                                    I Offline
                                    I Offline
                                    IknowQT
                                    wrote on 17 Jan 2022, 23:30 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
                                    
                                    
                                    J 1 Reply Last reply 18 Jan 2022, 06:19
                                    0
                                    • I IknowQT
                                      17 Jan 2022, 23:30

                                      @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
                                      
                                      
                                      J Offline
                                      J Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 18 Jan 2022, 06:19 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 18 Jan 2022, 07:40
                                      0
                                      • J jsulm
                                        18 Jan 2022, 06:19

                                        @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 18 Jan 2022, 07:40 last edited by IknowQT
                                        #19

                                        @jsulm

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

                                        J 1 Reply Last reply 18 Jan 2022, 07:51
                                        0
                                        • I IknowQT
                                          18 Jan 2022, 07:40

                                          @jsulm

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

                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 18 Jan 2022, 07:51 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 14 Feb 2022, 05:15
                                          0

                                          1/21

                                          13 Jan 2022, 07:02

                                          • Login

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