Blinking of pop-up widgets on Raspberry OS
-
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(); }
-
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(); }
@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. -
@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.@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.Can you check the gif attached to the link?
-
@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.Can you check the gif attached to the link?
-
@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 got a hint from what you said, so I made the screen a little smaller instead of full screen.
Is it because the Standard Curve widget behind is not in Modal shape?
@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. -
@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. -
@IknowQT said in Blinking of pop-up widgets on Raspberry OS:
no it doesn't matter
What does this mean? Yes or no?
-
@IknowQT said in Blinking of pop-up widgets on Raspberry OS:
no it doesn't matter
What does this mean? Yes or no?
-
@IknowQT said in Blinking of pop-up widgets on Raspberry OS:
no it doesn't matter
What does this mean? Yes or no?
-
@IknowQT said in Blinking of pop-up widgets on Raspberry OS:
no it doesn't matter
What does this mean? Yes or no?
-
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. -
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
-
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
-
@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).