Questions tagged as 'pyqt-5'

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
1
answer

How to make the image take up 100% of the screen. pyqt5 -python

I have an image and I need it to occupy 100%, it will be the bottom of my program, how to proceed? from PyQt5 import QtWidgets, QtGui import sys class Hello_World(QtWidgets.QWidget): def __init__(self): super(Hello_World, self).__...
asked by 08.03.2018 / 17:34
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

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
1
answer

How to insert accented characters in Text Inputs in PyQt5?

My text entries in PyQt5 (QLineEdit, QPlainTextEdit, Dialogs, ...) do not accept accented characters typed on the keyboard. I can only insert them if I type them in another editor and call Crtl + C, Crtl + V, or by commands in the source code. T...
asked by 29.03.2017 / 19:37
1
answer

How to escape HTML from a Pyqt entry?

Both Pyqt4 and Pyqt5 can interpret HTML entities. I have a place where the text is displayed in HTML format. However, at the moment of sending a text made by a certain QLineEdit , I need this text to be escaped, so that HTML tags are conve...
asked by 23.03.2017 / 15:42
1
answer

GUI with Forward and Back buttons on PyQt5

I noticed a very frequent doubt about how to do a GUI with Forward and Back buttons, being in PyQt4, had a question made a long time ago and that had not been answered until then. I once had made one in PyQt5, so do not get me wrong by the fact...
asked by 03.04.2017 / 11:45
1
answer

Style of the widgets of a program using PyQt5

I've been creating some kind of text editing software using python3.5 and PyQt5, and at the stage of creating the packages I came to realize that the development version, which used a PyQt5 package managed by the operating system, had a differen...
asked by 28.02.2017 / 22:28
1
answer

Error using QLabel class method - PyQt5

I'm trying to create an application that does the following: every time the user clicks on an image that will be inside a QLabel, it will open a dialog for the user to open another image. It happens that you give the following error the setPi...
asked by 12.10.2017 / 00:26