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
267
votes
5 answers

Auto-expanding layout with Qt-Designer

I'm using the Qt Designer. I want to create a QVBoxLayout which will automatically expand to fill the whole window. The layout of the QVBoxLayout remains fixed. How can I cause the QVBoxLayout to expand and fill the entire window through the…
Elazar Leibovich
  • 32,750
  • 33
  • 122
  • 169
116
votes
12 answers

Hand Coded GUI Versus Qt Designer GUI

I'm spending these holidays learning to write Qt applications. I was reading about Qt Designer just a few hours ago, which made me wonder : what do people writing real world applications in Qt use to design their GUIs? In fact, how do people design…
Ankur Sethi
  • 3,508
  • 5
  • 23
  • 17
106
votes
4 answers

How to make a Qt Widget grow with the window size?

I want to have a small QFormLayout that grows to fill its parent widget. I created a new .ui file using the QWidget template in Qt Designer. I put a QFormLayout inside that 'window', then put some controls inside that QFormLayout. This all works…
bastibe
  • 16,551
  • 28
  • 95
  • 126
88
votes
4 answers

Qt Designer vs Qt Quick Designer vs Qt Creator?

I have seen references to all three of these applications on various parts of the Qt website but am completely unclear as to the exact differences between them and whether they are actually separate things or just different names for the same thing,…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
83
votes
12 answers

Linking a qtDesigner .ui file to python/pyqt?

So if I go into QtDesigner and build a UI, it'll be saved as a .ui file. How can I make this as a python file or use this in python?
Chris
  • 21,549
  • 25
  • 71
  • 99
82
votes
3 answers

Understanding form layout mechanisms in Qt

Qt has a flexible and powerful layout mechanism to handle view of desktop application's windows. But it is so flexible, that it nearly cannot be understood, when something goes wrong and needs fine tuning. And so powerful, that it can beat anyone in…
Maxim Popravko
  • 4,100
  • 3
  • 29
  • 43
59
votes
3 answers

Qt designer: How to add widget to a layout in the designer when the layout appears infinitely thin?

I am using Qt Designer, and I would like to move a couple of top-level widgets into a horizontal layout. I have dragged a "Horizontal Layout" object into the form. I am now attempting to drag the desired widgets into the layout. Unfortunately, the…
Dan Nissenbaum
  • 13,558
  • 21
  • 105
  • 181
55
votes
3 answers

How to manage QSplitter in Qt Designer

When I press a button, I bring up a dialog where user select things and press 'Ok' at the end. I want a splitter in this dialog. Left pane will show tree and right will show something else. How do I do that right? From Qt example itself: QSplitter…
zar
  • 11,361
  • 14
  • 96
  • 178
53
votes
20 answers

PyQt5: How to install/run Qt Designer

Feeling really stupid, right now, but the title says it all: How do you start the QtDesigner? I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in…
User1291
  • 7,664
  • 8
  • 51
  • 108
47
votes
6 answers

Qt Designer vs Handcoding

Every time I start a project with some graphical toolkit, one of the first conflicts happen with the decision of how to deal with the visual design and the widget layout: A graphical tool or handcoding? This is a quite tricky/subjective question…
SystematicFrank
  • 16,555
  • 7
  • 56
  • 102
44
votes
2 answers

Inserting an image in GUI using QT Designer

I am new to QtDesigner. I wanted to know how to insert an image in the GUI using QT Designer. I am trying to add a logo. Help would be appreciated.
User123
  • 793
  • 4
  • 10
  • 28
44
votes
3 answers

Set label text in QTabWidget tab

I have QTabWidget on my form and two tabs on it. These tabs have standard text Tab1 and Tab2. How can I change it?
0xAX
  • 20,957
  • 26
  • 117
  • 206
41
votes
7 answers

Qt get children from layout

I try to hide all widgets in layout. But looks like findChildren doesn't work for layout. Here's my sample code: QLayout * layout = widget -> findChild (layoutName); QList list = layout -> findChildren (); cout <<…
Alex Ivasyuv
  • 8,585
  • 17
  • 72
  • 90
41
votes
4 answers

Qt Layout on QMainWindow

I designed a QMainWindow with QtCreator's designer. It consists of the default central widget (a QWidget) which contains a QVBoxLayout with all the other widgets in it. Now everything I want, is that the QVBoxLayout automatically occupies the whole…
Milan
  • 3,342
  • 3
  • 31
  • 40
37
votes
1 answer

MVC design with Qt Designer and PyQt / PySide

Python newbie coming from Java (+SWT/Windowbuilder) and am having difficulty working out how to properly code a large desktop app in Python/Qt4(QtDesigner)/PySide. I would like to keep any view logic in a controller class outside the .ui file (and…
Don Smythe
  • 9,234
  • 14
  • 62
  • 105
1
2 3
99 100