#๐Ÿ”’ Visual glitches in pyqt6 app

6 messages ยท Page 1 of 1 (latest)

junior ledge
#

I recently made a flowlayout in pyqt, and I this also happens with a combobox, where there are flashing visual glitches when hovering items in a QMenu or QComboBox, you can also see it when I add a widget to the flow layout.

Here is code to flowlayout: https://paste.pythondiscord.com/JL4A
Here is code to the flow layout logic: https://paste.pythondiscord.com/W42A

I tried to disable updating before and after adding the tag, but it did not seem to chnage anything

        self.flow_layout.parentWidget().setUpdatesEnabled(False)
frank crownBOT
#

@junior ledge

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

junior ledge
#
os.environ["QT_SCALE_FACTOR"]           = "0.7" 

this was the problem, when setting to 1 there are no visual glitches. however scale factor 1 is way too large for me so the problem still remains

#

!close

frank crownBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.