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

Initially hidden control in Qt Creator

I want to make a group box shown only when a radio button is selected. I managed to do that by connecting the toggled(bool) signal of the radio button to the setShown(bool) slot of the group box. The problem is that the radio button is initially…
Daniel
  • 30,896
  • 18
  • 85
  • 139
29
votes
2 answers

How to insert QChartView in form with Qt Designer?

I want to add QChart to the form. But I can't find it in the Widget Box. So I created it in the code. How can I insert it in QWidget or QFrame or something else? I want to set area of that widget in QtDesigner.
Ufx
  • 2,595
  • 12
  • 44
  • 83
28
votes
2 answers

How do "theme" icons work in Qt Creator Designer?

When I create the "Command link button" (QCommandLinkButton) it has relatively nice green arrow icon. I would like to see what other nice icons can I choose. When I try to change the icon, [Theme] appears instead of path or some GUI selection…
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
27
votes
1 answer

Qt: add a file selection field on the form (QLineEdit and "browse" button)

I need to display QLineEdit with "Browse" button at my form. When user clicks button, QFileDialog should be opened, and so on. This is pretty common thing, but I can't find ready-made solution for that. I expected in Qt Designer some widget like…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
26
votes
4 answers

How to convert a .ui file to .py file

This .ui file is made by Qt Designer. It's just a simple UI. All the commands or codes for doing this on the websites I have looked through are not for windows.
SonicFancy
  • 311
  • 1
  • 3
  • 11
25
votes
1 answer

How to change the caption of a button in a QDialogButtonBox?

I have added a QDialogButtonBox button with the default Cancel and OK buttons. Is there a way to change the caption of these buttons? For example, OK should become Run.
matteo
  • 4,683
  • 9
  • 41
  • 77
25
votes
7 answers

Best way to display logs in pyqt?

I am currently working on a GUI using qt designer. I am wondering how I should go about printing strings on the GUI that acts like a logger window. I am using pyqt5.
Carlo Angelo
  • 393
  • 1
  • 6
  • 14
25
votes
3 answers

QLabel embedding in QStatusBar using Qt Designer

Is there any solution to embed a QLabel in QStatusBar using Qt Designer?
Mohammad Sheykholeslam
  • 1,379
  • 5
  • 18
  • 35
24
votes
11 answers

How to install QtDesigner?

I just installed Qt 5.4.1 on Windows 7. And there is no QtDesigner. Also there is no QtDesigner in MaintenanceTool. How can I install it?
Ufx
  • 2,595
  • 12
  • 44
  • 83
23
votes
2 answers

Qt Designer: how to add custom slot and code to a button

I use Qt4 Designer and I want that when I click on the "yes" button, some code will execute. And when I click on the "no", some other code will be execute. How can I do it?
pol
  • 315
  • 2
  • 3
  • 7
22
votes
2 answers

Disabled splitter in qt designer

I'm using qt 4.8.0 on windows 7. When I open qt designer and create widget in it, I cannot set 'Lay Out in a vertical/horizontal in Splitter'. Also there is no Splitter in a Layouts widget box. All other layouts are working well. Have anyone run…
Mujo Osmanovic
  • 931
  • 2
  • 11
  • 15
21
votes
3 answers

Set widget in center in QDesigner

Is it possible to set widget in center of dialog or windows in QDesigner, say I have a widget contain 3 line edits and labels and I want to set this widget in center of window.
SIFE
  • 5,567
  • 7
  • 32
  • 46
21
votes
10 answers

How do I create a custom slot in qt4 designer?

Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?
user24560
  • 898
  • 2
  • 12
  • 16
20
votes
4 answers

Using QTDesigner with PyQT and Python 2.6

I'm new to Python and am starting to teach myself GUI programming (hopefully) using PyQT4.7 and Python 2.6 I just downloaded the whole PyQT/QT4 package (including QTDesigner) from the PyQT website, however it seems QTDesigner, which looks amazing to…
PyNewbie27
  • 205
  • 1
  • 2
  • 5
20
votes
2 answers

Qt Designer: How to remove slot from designer?

Adding slot for a signal of a widget is easy: right click on it and select "go to slot". But how can I remove the slot created for a button (like on_pushButton_clicked) from the Qt designer.
B Faley
  • 17,120
  • 43
  • 133
  • 223