how to select a particlular portion of a window’s client area to display in window’s thumbnail in the taskbar in Python/PyQt5/PySide2/Tkinter?

I want to set a particular portion(like only a frame or widget) of my application window to taskbar thumbnail.I found one windows API that is ITaskbarList3::SetThumbnailClip here but this is in C++.I …

Transformation of coordinates between PyQt and matplotlib

I would like to show a context menu on the position of mouse click and then create a new line on that position in the graph. For that I need both the PyQt position and the graph data position. I …

Determine the element which previously had focus?

In Java a FocusEvent has a method getOppositeComponent() which is where the focus came from or went to. In PyQt5 is there any way to find what previously had focus when overriding focusInEvent? As …

Create a dependent window?

I want to create a secondary window which is free-floating in relation to the main window. But I also want it to close when the main window closes. Indeed, I want the application to end completely …

Control display of gridlines and borders in header of QTreeView

(W10 platform) What I’m trying to get (I was asked to produce a target outcome, with Gimp): What I currently get: MRE: from PyQt5.QtCore import QRect, Qt, QAbstractTableModel from PyQt5.QtWidgets …

how to suppress console output from QWebEngineView errors?

I get the following error if I create a QWebEngineView instance from Python instances in different working directories: [2452:9872:1108/052617.050:ERROR:cache_util_win.cc(21)] Unable to move the cache:…

Can you configure key event handling in Qt Designer (PyQt5)?

I just discovered Qt Designer today and it’s rather wonderful. But I’m a keyboard fanatic and don’t want to be forced to use the mouse any more than is strictly necessary, or at the very least I want …

Labels and buttons not appearing PyQt5, Python 3 [closed]

from PyQt5 import QtWidgets from PyQt5.QtWidgets import QApplication, QMainWindow import sys class MyWin: def __init__(self): super(MyWin, self).__init__() self.setGeometry(200,…

Is it posible to find index-row and values with QRegExp with search name?

I want to find the row-index with searching word using with QSortFilterProxyModel and QtCore.QRegExp. I want to create a list with “mobile” and “email” columns only from the row …

finplot as a widget in layout

I am trying to add finplot, https://pypi.org/project/finplot/, as a widget to one of the layouts in my UI. I created a widget for finplot and added it to the widgets in the layout but I get the …