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
6
votes
2 answers

Easiest way to subclass a widget in Python for use with Qt Designer

I'm building an app using PyQt5, with (most of) the GUI being built using Qt Designer. I have a few UI elements that do mostly the same thing and it seems sensible to move their code into classes that inherit from a base class (which in turn…
intuited
  • 23,174
  • 7
  • 66
  • 88
6
votes
1 answer

installEventFilter in PyQt5

I'm trying to implement an event in PyQT5, but i get this error: TypeError: installEventFilter(self, QObject): argument 1 has unexpected type 'MainWindow_EXEC' This is my code import sys from time import sleep from PyQt5 import QtCore,…
SergioSalinas
  • 115
  • 1
  • 2
  • 11
6
votes
1 answer

bad resizing GUI. possible misuse of layouts in Qt Designer

I designed a GUI with Qt Designer and need to distribute it on many computer with different resolutions. My problem is that the GUI does not scale properly on the different screens: the main window may be truncated, some tables also and the fonts do…
Stéphane
  • 1,389
  • 3
  • 13
  • 34
6
votes
1 answer

QDockWidget form in Qt Creator Designer

I'm using Qt Creator 4.5.0 and am trying to create a QDockWidget that I could modify in the builtin designer (I do this all the time with QDialogs and QMainWindows, so this is the first time trying with a QDockWidget). But I'm having no luck with…
Stanton
  • 904
  • 10
  • 25
6
votes
4 answers

how to connect QActions to SLOTS using qt designer

I have created a nice looking toolbar using qt Designer and populated it with some actions. I tried to connect the actions to slots visually from qt designer by clicking edit> signals and slots. This DID NOT WORK because i could not find any QAction…
Dr Deo
  • 4,650
  • 11
  • 43
  • 73
6
votes
3 answers

How to purge QMainWindow's geometry tag in Qt Designer UI files

Qt Designer adds a geometry tag that contains the widget's default size in absolute units (pixels). This is really annoying because if you edit a ui file on a 4k monitor all of your uis will (by default) display with massive white space on a lower…
Mikhail
  • 7,749
  • 11
  • 62
  • 136
6
votes
3 answers

How can I draw inside existing QGraphicsVIew?

just like the title says i'm trying to draw inside an existing QGraphicsView. The window I generated using QT Designer, and I would like to draw a matrix of 16x16 squares inside the QGraphicsView. This is the code I have as of right now: Window: #…
Bryam Ulloa
  • 144
  • 2
  • 5
  • 17
6
votes
1 answer

PyQt: how to load multiple .ui Files from Qt Designer

I want to add startup window that when I click button, it will open another window and close current window. For each window, it has seperated UI which created from Qt Designer in .ui form. I load both .ui file via uic.loadUiType(). The first…
bgizzard
  • 63
  • 1
  • 5
6
votes
1 answer

How do I create a signal to open a QFileDialog in Qt Designer?

In Qt Designer 5, how do I create a signal to open a QFileDialog? I'm using Python and PyQt. I've tried creating signals with "Edit Signals/Slots" and I can select the button I want as sender, but I can't select an arbitrary function as the…
Kolargol00
  • 1,697
  • 2
  • 17
  • 21
6
votes
2 answers

Drag and drop with pyqt5 (SIGNAL)

I am trying to get drag and drop (with images or files) working for my listwidget in pyqt5. I can find a lot of examples with pyqt4, but there is one part that does not work in the newer version: In the…
user7409069
  • 63
  • 1
  • 4
6
votes
3 answers

Replacing the existing MainWindow with a new window with Python, PyQt, Qt Designer

I'm new to Python GUI programming I'm have trouble making a GUI app. I have a main window with only a button widget on it. What i want to know is how to replace the existing window with a new window when an event occurs (such as a button click). An…
Shahbaj Sayyad
  • 141
  • 1
  • 1
  • 9
6
votes
2 answers

How can I allow user resize on elements within the window using Qt designer?

I want to allow a user using my application to be able to drag a boundary between two widgets in my window which will resize the two (i.e. you drag it down and the top one will get bigger while the bottom gets smaller, and vice-versa). Is there…
6
votes
4 answers

Qt Charts and Data Visualization widgets

I have installed Qt 5.7 in order to try Qt Charts and Qt Data Visualization but I cannot find new widgets neither in Qt Designer nor in Qt Creator. Any suggestions what should I do so new widgets appear in designer?
user306080
  • 1,409
  • 3
  • 16
  • 37
6
votes
2 answers

How to access QTabWidget tab editor in Qt Designer - when I double click object name dialog pops up

I have a QTabWidget and I want to add/remove/rename individual tabs. Some sources claim that you can double click it to get a tab editor. When I double click it, I get the "Object name" popup: I need a similar editor like the one used for…
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
6
votes
1 answer

Qt How to change gridlayout column size

Suppose I have a gridlayout of three columns. I want each column to have custom width. Seems to me that the width of the columns are fixed automatically. How can I do this in the qt designer?
Yousuf Azad
  • 414
  • 1
  • 7
  • 17