All Questions
470
questions
3
votes
1
answer
57
views
MiterJoin is ignored for single-pixel width pen
Problem
When drawing a rectangle with a line width of 1px on a QPainter with antialiasing enabled results in slightly transparent corners regardless of what JoinStyle is set. The same can be observed ...
1
vote
1
answer
46
views
PyQt5 How to add a pyuic5 generated Python class into QStackedWidget?
I've this in my app.py:
from PyQt5 import QtWidgets
from screens import Ui_home, Ui_login_page
class MainWindow(QtWidgets.QMainWindow):
def __init__(self):
QtWidgets.QMainWindow.__init__(...
0
votes
0
answers
31
views
Hide a QMessageBox in PyQt5 without triggering its exec() to return?
I have a rather complex code that utilizes QMessageBox through several states, showing results of processing of a separate thread, mostly showing different results/statuses of the process, but every ...
0
votes
1
answer
21
views
Opening QDockWidget Closes Previous QDockWidget on Ubuntu
I wrote a PyQt5 program using QDockWidgets on Windows. Selecting items in a QList in the central widget causes a widget to be placed in the right docking area that allows me to edit that item and as ...
0
votes
1
answer
30
views
QML Create a component in a different file
I'm dealing with a little problem: I've 3 files: main.qml, actions.qml and edit.qml. The idea is that in edit I should do something, and that would create a row in an scroll in actions after pressing ...
0
votes
0
answers
63
views
Controlling height of QMenuBar (hideable menu bar) in PyQt5?
I wanted a hideable menu bar in PyQt5, and I found this example:
https://github.com/yjg30737/pyqt-hidable-menubar
My platform is:
$ uname -s
MINGW64_NT-10.0-19045
$ python3 --version
Python 3.11.8
...
1
vote
0
answers
25
views
PyQt5 SetWindowIcon from SVG from qrc resources rendered blurry/pixelized/wrong?
Consider this example:
File logo.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xml:space="preserve"
id="svg201"
x=&...
0
votes
1
answer
31
views
pyrcc5 error occurred while parsing reference [duplicate]
I am trying to follow the tutorial here: https://realpython.com/python-menus-toolbars/#using-icons-and-resources-in-pyqt
So, I wrote me a .qrc file:
<!DOCTYPE RCC><RCC version="1.0"&...
1
vote
2
answers
37
views
QGraphicsView and QSplitter: collapsing and unfolding area does not restore image
I am trying to create a basic program that has two side-by-side panels: one with image, and one with text. I am using splitter to be able to resize both areas up to the point of completely collapsing ...
0
votes
0
answers
83
views
python qt5 tab widget: how set tabs with table widget to full main window size? [duplicate]
I'm new with qt5 in python and struggling al lot to get a decent layout in qt5.
Below you find my code to create the tabs with a table in it. The code works fine to set the data in each table. But the ...
0
votes
0
answers
54
views
I have a problem with QTabWidget, how can I make the Tab panel like this? [duplicate]
there was a part of the interface in a CSGO cheat that caught my attention. I tried to see if I could do the same thing, but I couldn't. Even though I did a lot of research, I couldn't reach a ...
0
votes
0
answers
54
views
PyQT slot calls seem to jump to the front of the event loop
I'm writing a GUI in PyQT to control some hardware. I've had a lot of problems with one particular instrument that I'm accessing through a company provided dll. It seems like something in the dll ...
0
votes
0
answers
34
views
Qt Context Menu for each item in ListView [duplicate]
I use PyQt5 + Qt Designer 5. Is it possible to show Context Menu when I rightclick on item in ListView area?
The best I've got to is context menu opening when I click anywhere inside of ListView area ...
0
votes
0
answers
62
views
Cannot grab LeftMouseButtonGesture when called by a signal
I've list of items and I need to view detailed information of the item when clicked on it. Since the number of items and their details are huge, I need to be able scroll them with left mouse button (...
0
votes
0
answers
70
views
Display data in TableWidget Qt Designer
{import os
import sys
import pyodbc as odbc
import pandas as pd
from check import * # check is my ui file
class MainWindow(QMainWindow):
def __init__(self,parent=None):
QMainWindow....