Questions tagged [qt-designer]

Qt Designer is Qt's tool for designing and building graphical user interfaces (GUIs) from Qt components.

Qt Designer

Qt Designer is Qt's tool for designing and building graphical user interfaces (GUIs) from Qt components. You can compose and customize your widgets or dialogs in a what-you-see-is-what-you-get (WYSIWYG) manner, and test them using different styles and resolutions.

Widgets and forms created with Qt Designer integrated seamlessly with programmed code, using Qt's signals and slots mechanism, that lets you easily assign behavior to graphical elements. All properties set in Qt Designer can be changed dynamically within the code. Furthermore, features like widget promotion and custom plugins allow you to use your own components with Qt Designer.

References

1755 questions
0
votes
0 answers

Used pyuic 5, but can't see text on output

I ran this on command prompt to turn the file from QT designer file to a .py file. All the buttons have worked, but none of the text shows up (i.e. labels for the radio buttons / words on the buttons / general labels): C:\Users\Finn>pyuic5 -x…
Forrest
  • 1
  • 2
0
votes
2 answers

AttributeError: "Dialog" object has no attribute 'setupUi'

I made two forms on pyqt5 - qt-designer. One is the Main Form and the second is a Dialog which I will use for user input. I converted both to py code. First of all I should inform you that I do not modify the converted Ui.py files. I prefer to have…
shafuq
  • 465
  • 6
  • 20
0
votes
0 answers

two keyPressEvent in the same class (Pyqt5)

Hello I am using Pyqt5 & QT Designer to create a GUI. and i would like to use two keyPressEvent in one class. one of them to exit from the GUI and the other to hide a button.The problem is that the keyPressEvent overwrite each other so that they…
Ahmad
  • 227
  • 3
  • 15
0
votes
0 answers

pyqt4 - MySQL How print single/multiple row(s) of a table in the TableViewWidget

I've recently tried to create an executable with python 2.7 which can read a MySQL database. The database (named 'montre') regroups two tables : patient and proto_1 Here is the content of those tables : mysql> select * from…
piekaall
  • 9
  • 1
0
votes
1 answer

AttributeError: 'QTextBrowser' object has no attribute 'get'

I'm trying to put functions to my UI that has lineEdit where i could type and a SEND button which can then forward the text to the textBrowser to display, but i'm getting the error. AttributeError: 'QTextBrowser' object has no attribute 'get' from…
bestnoob
  • 3
  • 5
0
votes
0 answers

Set Focus on QListWidget item when QStackWidget page chaged pyqt

maybe a trivial question, sorry in advanced but I'm definitely not an expert. I have an UI create with Qt Designer with a QListWidget (5 rows) and a QStackWidget (5 items). I'm able to change the QStackWidget pages when changing one of the …
matteo
  • 4,683
  • 9
  • 41
  • 77
0
votes
1 answer

Help in designing layout with qtdesigner for python

I am working on Qtdesigner for generating a GUI for my python app. The problem is that I had manually made the widgets and then compiled it to py. But then I found out that the components did not resize when maximised. So I opened the .ui file in…
user506710
0
votes
1 answer

Updating QLineEdit on QPushButton click in PyQt5

I currently have the following QLineEdit: self.lineEdit_15.setText(_translate("Dialog", "email")) I am trying to update it with the following QPushButton: self.pushButton_5.setText(_translate("Dialog", "update")) Ideally, I'd like to get user data…
solo
  • 743
  • 2
  • 6
  • 17
0
votes
0 answers

Closing dialog built with PyQt5 and QT Designer

So I'm trying to build a config-setting dialog box for my application. I laid it out in QT Designer, like a lot of posts here recommended. It came out looking really nice. I generated the magic .py code using pyuic5 -x joeconfig.ui -o…
Dito
  • 182
  • 3
  • 12
0
votes
1 answer

How to create a slot / signal for a button in a QMainWindow created by QT4 Designer

I want to have a python 2 program using qt4 which prints to terminal when a button is pressed in a QMainWindow. How to create a slot / signal for a button in a QMainWindow created by QT4 Designer? I have tried everything I can think of and I don't…
wblan
  • 1
  • 1
0
votes
1 answer

pyqt5 QMessageBox not open

from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtCore import * class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(9576, 698) …
hanbin
  • 3
  • 2
0
votes
1 answer

How to enable autoscroll in Qtableview like in Qtextedit?

I'm using QtableView and QStandardItemModel to display logs on GUI to maintain proper spacing and filter logs. I created model and inserted data into it. Used QSortFilterProxyModel for filter strings. self.tableView =…
Anand
  • 343
  • 1
  • 5
  • 18
0
votes
1 answer

How to open a new window from the main one

I have created two windows with Qt designer. Now in a third file, I'm trying to import the classes and open one of them by clicking a QPushButton in the other one. The first one, main_gui.py, is something like this: from PyQt4 import QtCore, QtGui …
Jonas Kublitski
  • 119
  • 1
  • 11
0
votes
0 answers

PyQt5 close immediately when changing the status of QLineEdit

I decided to implement a simple version of GA algorithm. I firstly use Qt designer to create a .ui document which contains the component and layout of my GUI. Then try to connect it with the python, however, when comes to the…
YiS
  • 1
0
votes
0 answers

pyQt Timer Not Working for Updating Label

I wanted to make a simple stopwatch, so I set up a button to turn on the a timer to update the time label. When I press the button tied to the timer, it doesn't do anything except for print out my start_pause message. I've tried multiple different…
charlee
  • 31
  • 1
  • 8