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

setupUi() takes exactly 2 arguments (1 given)

I'm just starting to work with PYQT4. I generated the file test.ui in QTDesingner and translated it into test.py : from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): …
gdmkr
  • 3
  • 2
0
votes
0 answers

How to change import statement in QtDesigner and pyuic5 from 'import x' to 'from x.y import z?

When I use QtDesigner and pyuic5 for PyQt5 GUI applications it always uses imports like this: from PyQt5 import QtCore, QtWidgets class Ui_TabWidget(object): def setupUi(self, TabWidget): TabWidget.setObjectName("TabWidget") …
Hrvoje T
  • 3,365
  • 4
  • 28
  • 41
0
votes
1 answer

Changing buttons on button click

I have a ui I am working on, and I am trying to get the available buttons to change when I press one of the current buttons. For example, if buttons 1-9 are shown, if I press button 2, I want buttons 10-13 to show and buttons 1-9 to disappear. I am…
ChrisM
  • 125
  • 14
0
votes
0 answers

PyQt and Qt Designer

This is a minor problem but it irritates me I use PyQt I use Qt Designer I use PyUic5 to generate the Ui_MyDialog from the output of the Qt designer I created a custom widget and a plugin and managed to operate an insertion of my custom widget to a…
user3315504
  • 1,055
  • 2
  • 12
  • 17
0
votes
1 answer

PY Qt Open a QDialog from a QMainWindow

I am working with python code generated using QT Designer. I want to open a new dialogue from a button on my MainWindow. When I use the following code, the dialogue window disappears as soon as it is created. I assume this is because the QDialog…
PProteus
  • 549
  • 1
  • 10
  • 23
0
votes
1 answer

Using C++, how can I run a python file in Qt Designer?

I've finally decided to make the transition from WxPython to QT! I'm using Qt Designer5.9, but I'm having issues placing a new slot. My goal is to press a button on the GUI and have a function run that I have written in another python program. In Qt…
RknRobin
  • 391
  • 2
  • 6
  • 21
0
votes
0 answers

About Qt-designer, how can I get input outside functions? and how can I draw out the value?

class MyWindow(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) self.btn1.clicked.connect(self.btn1_clicked) #self.btn1.clicked.connect(self.popup) …
Inong
  • 1
  • 2
0
votes
1 answer

How to add .ui file in Visual Studio (2010) project and compile it

I'm new in using Qt and I have a problem. I have created a simple window (.ui File) with Qt Designer and saved it. Now I want compile it with Visual Studio 2010 . How can I add an external .ui file into my Visual Studio Project and compile it?…
Burkay
  • 91
  • 1
  • 1
  • 11
0
votes
1 answer

PyQt5 can't use pre defined widgets in separate ui file

I'm having a problem with PyQt5 where i have a separate ui file(still a python file not .ui) I'm trying to connect a button which would be located in that file however this doesn't work for me for some reason. Here's my code. from PyQt5 import…
SS2
  • 1
  • 3
0
votes
1 answer

PyQt5 Got stuck with access to another class function

Got stuck with accessing to outer class functions, it'll be great to receive some advice or solution how can i get access to another class method in Python. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def…
Alex Shaw
  • 13
  • 5
0
votes
1 answer

Attribute error: ImageDialog Object has no attribute. PyQt5

I am trying to add Maccept method to the ImageDialog class and connect this to okButton. However when I compile this code it will give : AttributeError: 'ImageDialog' object has no attribute 'Maccept' But I have already defined Maccept method inside…
dundar yilmaz
  • 141
  • 1
  • 6
0
votes
0 answers

Why does Mac say "cannot execute binary file" for QtDesigner in PyQt5 for Python3.6?

I added PyQt5 to the Python3.6 installation on my iMac running Sierra 10.12.4 in a Terminal window with: $pip3 PyQt5 Then I tried to run QtDesigner. It failed as follows: $cd…
VanDee
  • 1
  • 3
0
votes
1 answer

Event fired twice using button box in Pyqt

This app is a basic Drag'n'Drop program and should handle dropped .html files. So far I have written this code: main.py from PyQt4 import QtGui import sys import design, os class MyTextEdit(QtGui.QTextEdit): def __init__(self, parent): …
user7655814
0
votes
1 answer

Qt-Designer costumn widgets and relative path

I am trying to create unit testing for my project but struggle with costumn widgets. While compiling the test unit, ui_mainwindow.h cannot find my widget.h anymore. My project structure looks like this: Project scr scr.pro …
honiahaka10
  • 772
  • 4
  • 9
  • 29
0
votes
1 answer

How to create a window that opens another window with uic module ?? Qt-Designer and Python

I have a problem when trying to develop a GUI with PyQt5 and QT designer. I want to use the uic module, I have a .ui file called registro.ui, and another login.ui, as I can call from login.ui to the registry.ui,by clicking on buttom registro I also…
Andres
  • 17
  • 5