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

Qt how to embedded image resource in custom widget plugin dll and make it available in qt designer resource chooser dialog

I have implemented a qt custom widget (MyWidget) plugin which can be used in qt designer. There is a property IconImg of MyWidget with which user can provide an image file to change the icon of MyWidget. Now, I want to embedded several default…
ricky
  • 2,058
  • 4
  • 23
  • 49
0
votes
0 answers

Basic GUI Weight converter

I am writing a Weight converter to convert killogram to Pounds and vice versa.... Using QT Desginer I have done the interface etc, but now I am stuck trying to figure out how to link the buttons so that when you press one it converts to pound what…
0
votes
1 answer

Modifying a button's appearance without destroying StyleSheet settings established in Qt Creator

The specific application is a Tic Tac Doe toy app made of a grid of 9 buttons. The original layout of the buttons is built in Qt Creator, where their large font is established by a styleSheet property. When a winning row occurs, I want the main app…
David Wallace
  • 212
  • 4
  • 12
0
votes
1 answer

Using Qt Designer 5.8 with PyQt5: problematic example from PyQt v3

I understand (more or less) content of the page of official documentation except the the final example, which is essencially as follows (I do not care the button): from ui_imagedialog import ImageDialog class MyImageDialog(ImageDialog): def…
garej
  • 508
  • 1
  • 8
  • 24
0
votes
1 answer

How to get the objectName of a modified QSpinBox?

I want to keep track of the user modifying the company's forecast in my custom made app. I created it using qt designer and PyQt4, and I'm using QSpinBox for the quantities (easy way to control range of values and masking the fields to be number…
0
votes
0 answers

How to get pyside-uic to generate "./" for resources instead of ":/"

I have a GUI I created with QtDesigner that includes some images for buttons. Within QtDesigner they are stored together in a resource file. When I run pyside-uic -x ui_mainWindow.ui -o ui_mainWindow.py or pyside-uic -o ui_mainWindow.py…
James Paul Mason
  • 1,051
  • 1
  • 13
  • 27
0
votes
1 answer

Deactivate a spinbox in Qt Designer

Is it possible to deactivate a spinbox if a radiobutton is chosen? I've tried several things, but either the spinbox is deactived all the time or it wont deactivate at all.
srky
  • 350
  • 2
  • 4
  • 12
0
votes
0 answers

Implementing a QtDesigner-like behavior with QtDesigner

I want to implement an editing procedure like the one seen in QtDesigner. That is, having a toolbox of available "blocks" and being able to drag them into the working area of program to create a new instance of some sort of editable object (or…
0
votes
1 answer

In Python, how to use GUI module file created in QtDesigner

I created a GUI with the hepl of QtCreator-->QtDesigner. The file is called mainwindow.ui. With the help of pyuic5 I created mainwindow.py pyuic5 mainwindow.ui > mainwindow.py and this is how it looks like: from PyQt5 import QtCore, QtGui,…
Hrvoje T
  • 3,365
  • 4
  • 28
  • 41
0
votes
1 answer

pyside, Qt Designer, encapsulated code, and AttributeError: 'MainWindow' object has no attribute 'QtGui'

I used Qt Designer to create a .ui file then pyside-uic to convert to a .py file (ui_mainWindow.py with class Ui_MainWindow). I'm heeding the warning not to edit the .ui or .py because any changes there will be overwritten when saving updates in Qt…
James Paul Mason
  • 1,051
  • 1
  • 13
  • 27
0
votes
0 answers

Connections in Pyqt forms

I have been newly working on developing a desktop application and i am stuck with this topic. I have two forms and I want to connect Buttons/widgets of one form to Buttons/widgets of another. Is it even possible to do that? I know it can be done in…
Mitul Shah
  • 27
  • 5
0
votes
1 answer

Qt Designer / PyQt - dynamically duplicate a tab widget with embedded widgets intact

I have C# experience, and I'm making my first Python app. I'm part way done the UI in QT Designer, and soon I'll try PyQt to integrate it with my code. This is a general guidance question for best approach. I have a tab widget containing various…
JamesK
  • 49
  • 9
0
votes
0 answers

QT Creator / Designer : Files CANNOT be edited in Designer mode anymore

So when using Qt to build user interfaces, you all know that .ui files (forms) open in Designer mode by default, and that if you manually switch back to the Editor, then this message appears "This file can only be edited in Designer-mode". Well, for…
Charles
  • 988
  • 1
  • 11
  • 28
0
votes
2 answers

Is there design mode for Qt Creator?

I 'm making a widget for Qt Designer with Python. My problem is how to prevent some code running when the widget is in Qt Designer and run only when the application runs. Is there something like qtdesigner.designerMode?
P.G
  • 11
  • 2
0
votes
0 answers

PyQt Window not show after setting layout for centralWidget

I'm making a PyQt application, and the UI file was designed using Qt Designer. Its initial structure is like this: MainWindow - CentralWidget - PaintWidget (which was promoted from QWidget) Since the paintwidget doesn't resize when the window is…
Yiroro
  • 39
  • 1
  • 3