Pyqt5 Questions
Ad
PyQt and Netgraph Interactive Graph
I have an application with pyqt and i would like to add the netgraph graphs interactiviness to my application. however, i am not being able
Fetch data from qcalendar
How to fetch the data from qcalendar. for example, when is select 21/10/2019, "monday" will be fetched when i click the "ok" button the
Clicking a button to create a new button using PyQt5 python
I'm trying to create a window(ui) that have a button click action implemented using python and
Keep watch on a folder for recently added file and display the data inside that file on QTableView
I have written a logic in pyqt5 which reads the data inside a recent csv file which has been added in a specific folder when you press a button. i
QSlider with "arbitrary" values (from list/array)?
I ended up with a subclass of qslider like this: # via
How to show a highlighted label when The mouse is on widget
I need to know how to make a highlighted label(or small box )appears when the mouse is on widget like when you are using browser and put the mouse
python: How to constantly update buttons inside QGridLayout
I am making a project on pyqt5 and i need to change amount of buttons inside qgirdlayout i am using pyqt5 to make gui for my application.
Correctly display thread ID with QThread
I'm trying to correctly display the id of a thread using qthread but i get some confusing results. i've already read this:
How to show a pixmap in pyqt5 in __init__
I have a simple python application using pyqt5 that shall perform an update. currently i'm stuck directly within the __init__, when i
I want to get working QFileSystemModel in Tree view?
I am making a program in which i want a filetree (i already have this but not with qfilesystemmoodel and that makes it harder to do things
Ad
How to check whether a context menu or dropdown list is opened in the current window?
I want to check if there is any context menu or dropdown list opened in the current window. there is a qtimer running that should do
PyQt5 StatusBar Separators
How do i add vertical separators to my statusbar? (red arrows) in this screenshot.
Dynamic button generation in class with click signal
I want to create a gui where many buttons and qwidgets will be created later. because this (i want to move it to single classes and this is where
Display the text of a checkable combobox to a QTableWidget
My code has a combobox with checkboxes and everytime i check a checkbox i want to display the text in a qtablewidget row and if a checkbox is
Not sure why textbox isn't showing
I'm making a simple browser with a search box in pyqt5. this is what i've written: import
in PyQt moving between screen when pressing a button
I'm building restaurant app for practice with pyqt5 i have 2 problems: i have a main screen that will take the user to other screens
Remove Points / Lines Canvas Python Matplotlib
I use the following code to draw lines in matplotlib with mouse event. every click they save the coordinates and draw lines. from
how enable widget moved when window size changed with paint event?
I am try to create a widget to animate a line, the when the windows size is changed, the animation always play the size. i know the
Assign function to word in QLabel
I am searching for a solution for the following problem: i want to assign a function to a certain word inside a qlabel of
Insert blob image into QPixMap from sqlite db to QTextBrowser in PyQt5
I can't insert qpixmap image to qtextbrowser with html tags. (i need to insert with html not other methods) i tried the code below.
reading text from QLineEdit as a submenu of a Qmenu option
Reading the text a qlineedit which is part of a qmenu as shown in the code initially i though i could use a trigger function to determine
Ad
How to access widgets in centralWidget from stackedLayout?
I have a qmainwindow in file controller.py which creates a qmenubar on the centralwidget and multiple files named as
Highlighting portions of text in QPlainTextEdit
I have a list in qplaintextedit and want to highlight a specific line, line number 5 say. i looked at various tutorials and examples, but
Python when i click button twice qgridlayoutwidget gets weird
**-solved-** hello i recently made a program which gets imdb api (non-official one) and generate bbcode you can see my code
How to prevent window and widgets in a pyqt5 application from changing size when the visibility of one widget is altered
I want to create a dialog, in which the user should first select one item in a drop down, and for some choices specify an additional parameter.
Image doesn't show in my secondary window
I wanted to create a secondary window to show the fullsized image, so that's what i've made but i can't see the image. i don't know if it's why i
How to show another Widget after signal from existing window app? (both guis converted from ui using pyuic5)
How to show/load another widget after button click in existing window?. having converted two guis from qtdesigner into
QAction checkable at time in QMenu with nested menu
I want to create a nested menu with three levels file->circuit->then with an option of full of half with the later options checkable and
How to import QtWebEngineWidgets after QApplication has been created
I am trying to get around this error: qtwebenginewidgets must be imported before a qcoreapplication instance is
Can't Kill PyQT Window after closing it. Which requires me to restart the kernal
I guess that i am not closing my pyqt5 window correctly. i am using spyder (3.3.5) which i have installed with anaconda, to program a pyqt5
What should I use, QTableWidget or QTableView?
What should i use, qtablewidget oder qtableview? i'm currently working on a program to display some log files in a table. i was using
After QPushButton clicked execute some code and when finished automatically go to next QWizardPage
I have a wizard with three pages. first page is basicsettings(), second page is installpackages() and the last page
Ad
export widget in PDF file
I would like to export a label in a pdf file. i got the error message: 'qlabel' object has no attribute 'document'
Syntax highlighting editor with PyQt5
I'm currently working on an pyqt5 based application i could use an (embedded) editor for which provides some syntax highlighting for yaml (and
How to make buttons from scratch in PyQt5?
During making my program i needed to create a widget with qtextedit and qpushbutton on it. i did this but the button looked like 3d object. before
How to make editable value in QTreeWidget
I have a project. i work on json file. i got a sort in python. this is treeview and i want to make changes to the treeview. how do i editable it
Emiting QTableWidgetItem specific signal on being clicked
I want to implement the functionality that multiple qtablewidgetitems inside of a qtablewidget can be selected and unselected so that the values
Pyinstaller - Hide and Run Executable file through .bat file
I am trying to add one executable (.exe) file, a .conf file and a .bat file into the binary package created by pyinstaller and then through that
the qlabel can not trigger the mouse release event
I have a parent qlabel, and create a child qlabel to show some text. when i click on the child qlabel, the mousepressevent on parent qlabel is ok
A string of consecutive check boxes in pyqt
I would like to create a number of consecutive checkboxes [x] with labels in pyqt5. most of the similar questions i have found an online deal
How to put some validation on Qwizard finish button slot and get confirmation before qwizard finishing?
I try to put some validations on user inputs and display a summery of entered information and get confirm from user if all thing is right. i think
can't print readAllStandardOutput correctly decoded
I have this code to print into a text field all the output from a process: data = self.m_process.readallstandardoutput() s =
How to add a text on image(Python GUI PyQt5)
How to add a text on image? it may place top right top left bottom right bottom left or center it does no matter? class
Ad
Loop for key input who modifies OpenGL wigdet
I am trying to create a loop who is being executed all time and checks for key input. this loop would modify the opengl properties, but i do not
QTimeEdit How to decrement to previous hour when minute is decremented?
My qtimeedit displays hh:mm. the miniutesection has 15 as the step. my qtimeedit increments well. but when i want to decrement the minute, i can
How to fetch comboBox.currentText() and SpinBox.text() from within a treeWidgetItem
Context: i have a qtreewidgetitem that i'd like to save as a json file. the qtreewidgetitem is composed of three columns
How to save Qlistwidget items in database or in txt file
Hello recently i made app which will i show you below. in pyqt5 i want to save qlistwidget items in txt or in database file but i don't know how
changing pixel color with setPixel
I have a b/w picture i need to edit pixel by pixel. if a pixel too dark it's color should be changed to black. here's my code:
Change editability for individual cells of QTableWidget
I use a qtablewidget as an i/o feature for the user but i want to make it more user friendly and intuitive by disabling the editability of cells
QWebEngineView update with pdf path
I have a qtwebenginewidgets showing some pdf files. i want to change pdf and force qtwebengineview display automatically
how to add QLabel object to qheaderview?
Need to add subscript to horizontal header of qtablewidget with qlabel where html will be the text of the qlabel.
QPainter in pyqt5 is not painting anything when calling repaint() in a loop. How do I fix this?
I am totally new to pyqt. i want to do animation using pyqt5 .this is a simple test i am doing , so i am just trying to move a rectangle from top
How to check if a checkbox is checked in a qtablewidget?
I'm setting a filtering tool in python 3.7 and i'm using pyqt5. i've created a qtablewidget to store the filters and their complementaries choosed
How can I make a QWidget open after a QWidget closes?
I have the below code: import os from functools import partial import numpy as np from pyqt5 import qtcore, qtwidgets class
Ad
Application name displayed as Unknown with fbs and PyQt5
I wrote an application with fbs and pyqt5. when starting any window, the application name is displayed as "unknown" on ubuntu 19.04.
QLabel not displaying in QWidget window
I have the below piece of code which gives the below picture.
selection of several elements on qtreeview and their processing
I have a program with two qtreeview. when i press a button, i need to allow the user to select several elements, and when user press escape, to
Signals and slots in PyQt5
I have been trying to convert the following code to pyqt5. after changing qtgui.qtextedit to qtwidgets.qtextedit and
How to execute QWebEngine in Python function
I have a qwebengine class tor read webpages and create beautifulsoup for them. here is the code: import sys from bs4
How to filter the file list of QFileSystemModel by file name?
I want to make a manager that can display specific folders. suppose i want to filter out folders without extensions.
How to correctly update view in pyQt after editing abstract model in another thread?
I'm trying to setdata() of my qabstracttablemodel (which is connected to qtableview) from another threading.thread. data in model changing as
How can I stop a QSvgWidget from spawning it's own window
I have just worked out how to show an svg image in pyqt5 using qsvgwidget and have tried to transplant it into a blank gui created with the qt
How to get the current Value of ProgressBar in pyQt5?
I'm learning pyqt5. the problem is that i want to get the value of the progressbar in pyqt5 i tried using
QTcpSocket readyRead not emitted
The target is to receive some messages constantly from another tcp server. instead of python built-in tcp socket, i switch to qtcpsocket. the
QtGui.QColor does't work when I give it a list [..., ..., ..., ...] as a function argument
I need help with pyqt. i have a simple pyqt widget as an example. it has a plain color for background. but i don't
Ad
How display a QPropertyAnimation() on top of the QScrollArea()?
1. intro i'm working in python 3.7 on windows 10 and use pyqt5 for the gui. in my application, i got a
Prevent a specific QLineEdit from focusing when tab is pressed
I hava a pyqt5 gui. i want to navigate in the gui using tab key. but i want to prevent specific qlineedit widgets get focused after tab is
PyQt Creates Seperate Window For Button
Hi recently i started experimenting with the pyqt5 gui library since tkinter doesn't look very modern or nice. i am trying to create a very simple
Inheriting from custom PyQt5 QWidget does not call parent method
I am coding a little application in pyqt5 and came across a problem illustrated at hand of the following minimal working example: my
PyQt QThread: How to run a function on a worker object in the same thread?
I just can't figure out how to use qthreads properly. i have a worker object, and a gui here that has two combo boxes: when a user chooses an item
Reload webView widget automaticly with a loop and a timer
I'm creating a gui where i want to display a site with qwebview and reload it automaticly every 10 seconds. i tried with a qthread, no
QTableView horizontalHeader makes it very laggy?
I have the code below, and i noticed that when i hit ctrl+a to select all rows it feels laggy, taking about 1 second to complete the selection.
Variable inside a spinbox widget to display in the LCD widget at a click of the pushbutton widget
What should i do when i want the variable inside a spinbox widget to display in the lcd widget at a click of the pushbutton widget? code
PyQt5 fails as "suitable UI Toolkit" for Mayavi with Python 3.6
I'd like to run sfepy demos but there is a problem displaying using mayavi. see
PyQt5 retrieve form values using runJavaScript
I have a form.html file and i run it using pyqt5 qwebengineview. i want to retrieve form values after the submit button
Threads with huge time delay difference running sequentially
I'm currently looking for a way to add tcp/ip communication to my application written in pyqt. while none of code i have tested appeared to
Ad
separate functions from gui into process. lagging
First i created the functional parts of my code and later decided to add a interface to it, so i have linked the interface and and the main
PyQt5: Questions about QGraphicsScene's itemAt() and focusItemChanged()
I have two questions: what does qtransform() mean in itemat()? the sentence below is what it says in qt doc, but i can't
How would I destroy and recreate my window in PyQt5?
I am practicing multi-file programming and am implementing a simple game of minesweeper. when the user starts a new game, i create a grid of
PyQt5: I can't understand QGraphicsScene's setSceneRect(x, y, w, h)
I see some people say if you want to put qgraphicsscene's origin of coordinates at the origin of qgraphicsview, i.e. top-left corner. you need to
How PyQt understand that our class is inheriting from something?
I was recently digging a lot in pyqt and doing some staff with it, but suddenly realized , i don't understand some basic staff which i was doing.
QPlainTextEdit is RightToLeft but displays LeftToRight
I made a view with qplaintextedit and set setlayoutdirection(qtcore.qt.righttoleft). the output of
Call pyqt widget from Qt widgets application
I am trying to extend my qt application with python scripts plugins. it works fine if i call any not pyqt script. it works fine too if i call any
I want to put the text in pyqt QCalendarWidget
I would like to put the text of p.drawtext (r.x () + 10, r.y () + 33, '{} / {}'. format ('tset1', 'test2') condition on the selected
Moving across elements using Up-Down keys
I make a program using pyqt5 and python3.7. how to move across elements using arrow keys instead of tab key? (e.g.
How to edit column formula so it can be calculated automatically?
I'm making a project using python where it can behave similar to excel, for example when i input some numbers in my cell, it will be
Ad
pyuic5 - Unknown C++ class: QfontDatabase
Used qt designer 5.9.5 to built a simple ui with a qfontcombobox. when i run pyuic5 it generates an error; pyuic5
Beautify PyQt GUIs and printing to GUI(textbrowser or some other widget)
I've made a gui for my application but i've to make it look professional. currently, i think it's looking casual. also, i want to print some
I would like to rotate a widget using QGraphicsScene in PyQt (QLineEdit and QPushButton)
I would like to rotate a widget in pyqt5, i have developed this code but it doesn't work. the angle doesn't update and it returns a false. do
PyQt5 passing argument between two classes: lambda vs partial
I am trying to pass an argument between two pyqt5 classes. i used three methods: using lambda functions. wrapper function
Why PyQt5 import show a error about windows and bluetooth?
The import of pyqt5 come with this error: c:\python364>python.exe python 3.6.4 (v3.6.4:d48eceb, dec 19 2017, 06:54:40) [msc
Run a function in another function Python
I have gui with pyqt5. i have a few qlineedit in my gui, and when you click the button it submits the value of those variables. it's working
what is horizontalHeaderItem
I was following some examples to build qtablewidget with buttons inside cells and there was a suggestion to use qtablewidget.horizontalheaderitem.
PyQt - How to link and update the label from edit Window to my main window
I have to create a program of inventory and i have trouble time wherein i want to have edit button and when it is click, another window will pop
Open a file from main window to a new window in PyQt5 (in different files)
I have two files, one for my main window, which has one image and one button and one for a new window. what i want it to do is that when i push
PyQt5, I need not to print continuously but instead it only changes the QLabel
I need it to be not continuously printing but instead it only change the qlabel, i dont need to add more, just whenever you write in line edit it
PyQt5: Change layout for multiple objects at once
Okay, so i have a qmainwindow object that is my window and that contains several qlineedit objects. depending on a condition, a single qlineedit
Ad
adding widget dynamically python
I have these two python scripts that i want combine into one window. basically, adding the widget to the window when the button is checked. this
move QlineF inside QGraphicsScene
I try to understand, how to move/transform graphic items inside a qgraphicsscene. in my code i define a qgraphicview with a scene as
Ad
Blog Categories
Ad