Questions tagged as 'pyqt5'

0
answers

Event when selecting a row from a table in python

The code of my table is: from PyQt5 import QtCore from PyQt5 import QtWidgets from PyQt5 import QtGui import configparser import os from util.excelUtil import * class Tabla(QWidget): ''' Metodo base para la creación de una tabla con el botón...
asked by 18.12.2018 / 12:47
0
answers

apply dragEnterEvent and dragLeaveEvent on a QFrame

I would like to know how I can use the dragEnterEvent event and dropEvent of a QFRame to be able to apply a resize effect on a QFrame. that is to say when positioning the mouse inside the frame it would have a width of 100 and when leaving a...
asked by 05.12.2018 / 02:34
1
answer

PyQt5 Error connection to Mysql "Driver not loaded"

I did not manage to solve this error that appears to me when trying to connect to a Mysql database with PyQt5 Instruction used: from PyQt5.QtSql import QSqlDatabase, QSqlQuery, QSqlTableModel from PyQt5.QtWidgets import QTableView, QApplica...
asked by 23.11.2018 / 15:27
0
answers

Generate blur effect in QmainWindow python

Good evening I would like you to help me put a blur effect in a window in pyqt the result that I hope is something like this: this is the code: import sys from PyQt5.QtWidgets import QMainWindow,QApplication, QGraphicsEffect,QGraphics...
asked by 25.11.2018 / 01:31
0
answers

Error with Pyinstaller and PyQt5

Work with Anaconda 5.3.0 and Python 3.7. I have made an application and I want to create an executable with Pyinstaller, the case is that I miss the following error: Exception: Cannot find existing PyQt5 plugin directories Paths checked: C:...
asked by 15.11.2018 / 23:54
0
answers

Error QAbstractTableModel (parent: QObject = None): argument 1 has unexpected type 'list'

I'm learning Python. I work in Win8.1 with Python 3.7. I must create a qtableview to show 9 columns of read-only data. Send as a parameter a list like the following: xlista = ['ars 1', 'Ars-s 2', 'Bry 2', 'CALC 3', 'cean 1', 'coll 1', 'cup...
asked by 18.11.2018 / 18:58
1
answer

problem with the Sorting in a QTableWidget

I'm putting together a table with QTableWidget in PyQt5 .. I set the sortingEnabled to True , but the problem is that it does not sort the numbers well. For example, if I'm 20, 201 and 30, sort them as follows:...
asked by 14.11.2018 / 18:36
1
answer

open a QMessageBox inside a QMainWindows already open

Searching in a network to manipulate windows, from a main window, I will be able to do it, what I do not find yet, is already running the program, in the login to put both user and password as admin, I should leave a QMessageBox , with any messa...
asked by 26.10.2018 / 01:51
0
answers

Python - QBasicTimer :: start: QBasicTimer can only be used with threads started with QThread

I'm trying to implement an animation in my project, this animation starts when you press the self.l_entrar button and it should end when the login window closes and there will be the following: however I get the following error: QObj...
asked by 18.10.2018 / 19:53
0
answers

Help with drawing in PyQt5

I am new to programming and as a project I am making an application for calculating slabs of a building, and an important part of this is that (once the number of slabs and the length of each one have been entered) I can draw the slabs in a sche...
asked by 16.10.2018 / 00:19