Pyqt 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
Dynamically added Widgets in PyQt5
I'm new to pyqt and i'm trying to create a system which dynamically adds widgets when the user presses the search button. the items added were
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
PyQt5 How to update GUI when use evaluateJavaScript if python is still running
I would like to modify my gui dynamically with the evaluatejavascript command i noticed that the gui is updated only when python has
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:
Ad
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
Using PyQt4 & sip for shared maya script - how to set up modules?
I want to use pyqt4 and sip in a shared maya script. i figured i can't use pip-install because i would only get these modules locally on my
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
Problem loading VTK window into PyQT Window
I'm tearing my hair out with a problem with vtk and pyqt4. i have an interface that has two tabs in it, one will house the vtk window and the
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
How to Use the Android 'IP Webcam' App with Python
Working on simple gui project. i've got some code from online,and found out how to connect the ip-webcam app, but the question is how do i use
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
Use methods as arguments for a partial command
Can i use a method with arguments as an argument in a partial statement? i am using partial and can pass strings, but when i try to pass a
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
Ad
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
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
How do i make a button to execute untill i release it?
I'm facing an issue to make a button execute continuously, when i press the button till i release it in pyqt4. import sys from
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
PyQt: How to create custom combined titlebar and menubar
I'd like to set the menu and title in one bar, but have no idea that how to layout the menu bar and title bar (or my own title bar).
Ad
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
PyQt- CheckedListBox?
I am developing a gui with pyqt and want to know if there is something like the "checkedlistbox" (from vb.net) for pyqt. if not, are there any
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
Python Convert SQL DataType Image to Python PyQt4 QPixmap and Show it on GUI
I'm trying to display image from sql database in python pyqt4 gui, actually the data is being passed through socket from .net to
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
Add Icon to Tab (QTabWidget)?
I'm working with a qtabwidget with three tabs. one of the tab is about information/help. so i want to use a picture of a question mark (.png)
Ad
Check if QLabel is enabled, pyqt label state (isEnabled)
I want to check qlabels state and make an action over that control. i have a label and i want to use isenabled() function on this
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 =
Ad
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
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
How to insert and clear placeholder in QTextEdit
I have a qtextedit with settext() already but i want a the placeholder to clear when user selects the edit text. illustration shown here
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
Ad
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
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
Python program reset when condition check of a variable
I am developing a small program that will communicate to serial port. i have developed a gui using pyqt5. first of all, the program will
Ad
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
PyQt5 focusing on readonly QLineEdit widgets
I have 3 qlineedit widgets that are readonly and listen to keyevents. well i want to let the user to choose what qlineedit he is going to
QMessageBox position on QMessageBox.warning call
From current window i am trying to create a simple confirmation dialog using qmessagebox. my code is: res =
What is this error?: unbound method requires a vtkRenderingCorePython.vtkAbstractMapper as the first argument
I am using vtk in python now. and this is the first time i have been programming with python. after outputting the 3d object, we want to output
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
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
Ad
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
Black border on FigureCanvas upon changing size in pyqt
I'm trying to embed a matplotlib (version 3.0.0) figure into a pyqt5 gui (version 5.9.2). therefore, i'm creating a canvas and adding it to the
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.
How could I highlight the cell with the highest value in each row in a PyQT4 Table View
I am very new to pyqt and stumbled upon the following obstacle. i have created a pandas dataframe and managed to visualize it in a pyqt4 table
how can I disable a push button after it was clicked once?
I'v created a gui with a button called "start". after it was clicked once, i need this button to be disabled. the button
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
QT stylesheet not producing any result
I'm new to qt and this is probably very basic but i can't get a stylesheet to work on my message box. the code i have now is called
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
python launch editor externally and get texts
I'm writing a pyqt programe where i'd like to allow the user to launch their preferred editor to fill in a textedit field. so the goal is
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
Ad
Blog Categories
Ad