Questions tagged as 'pyqt'

1
answer

How to use QTreeWidget FindItem in PyQt?

I have a QTreeWidget tree with several items previously included. I need to look up if a string x has the same text value as my QTreeWidgetItem , so I need to check all the items in my tree. Does anyone know how I can use thi...
asked by 21.02.2014 / 18:36
1
answer

How to perform communication between Threads and PySide Qt?

The graphical user interface window created in PySide runs normally following the normal program flow. The program's true python script runs on a Thread in parallel. But this thread script needs to send the logs to the QPlainTextEdit of the grap...
asked by 17.07.2018 / 17:59
0
answers

What is the function of pyqtSignal?

I did a search on the class pyqtSignal and its methods, but I could not understand it well. Someone who works with this class, can you explain your function?     
asked by 01.06.2017 / 16:34
1
answer

Dynamic table in python

I have a problem and I can not identify the error. I am creating a Python PivotTable where it will be populated with database information. The problem is the code is repeating the first line of the sql query: # Cria tabela def tabela(self,l...
asked by 22.10.2016 / 00:57
1
answer

PyQT calling file created by QtDesigner

I developed a dialog in PyQt with Dialog with Buttons Right template, but when calling in my main class it returns an attribute error. I saw in the YT video that the guy used the Main Window as a template and he just installed Main_principal cla...
asked by 08.02.2017 / 16:30
1
answer

Pyqt5 how can I make a button select a stackedwidget from qt

I'm doing a form in python, but I need to know what I do to make a button select the indexes of stackedwidget just like in c ++ using qt. from PyQt5 import QtCore, QtGui, QtWidgets import sys import os class Ui_MainWindow(object): def set...
asked by 10.09.2018 / 21:56
0
answers

How to change the contents of a window in PyQT 5?

I'm using PyQT 5 to develop a user interface and I'm having a question: how do I change the contents of an area within the main window? I want to do this because I do not want to have to create a new window every time I want a different layout. T...
asked by 25.09.2018 / 01:38
1
answer

How do I change the contents of a qLabel at runtime?

Good afternoon everyone! I need each qLinedit row to be numbered in ascending order from 1 to 24, I created a qLabel for this, but I do not know how to make it change the numbering according to each line, I could only print a lot of [i] as shown...
asked by 18.09.2018 / 23:04
0
answers

How to transform the string of a QLineEdit into float?

Good evening everyone! I've been trying to transform the string of a Qline edit into float and I can not !! It always returns the error saying that I can not convert string to float. What can I do to get around this? I'm trying like this: if f...
asked by 15.09.2018 / 00:10
1
answer

python command to "get" the text from the Qt Designer fields and save it in sqlite

Good afternoon. I'm enthusiastic and I'm starting in python. With Tkinter I can send the field text to the database with the "get ()" function, in gtk, if I'm not mistaken, with "get_text ()". I would like to know what this function would be in P...
asked by 08.03.2018 / 18:26