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

PyQT5 and Python3 "exit(a.exec_())" NameError: name 'a' is not defined

I am new to python and trying to learn to write a GUI for a raspberry pi. I am currently just following an online tutorial to create a GUI in QT designer. My QT designer has a custom widget that I added from another developer to display an LED in…
Terydan
  • 11
  • 3
0
votes
2 answers

how to set geometry of an element in css in qt5

I am using qt5-creator designer and iam using css for customizing QPushButtons in a frame i want to set geometry of buttons with css i tried this but this is not working for me .col-1-row-2 { position: fixed; top: 500 px; left: 500 px; } i replaced…
H00man
  • 375
  • 1
  • 7
  • 21
0
votes
1 answer

How can I use replacedlg.ui in mainwindow.cpp?

I have written a project which includes a mainwindow and a replacedlg.ui. I want to use replacedlg.ui in mainwindow.cpp. I'd like to write things like ui->button in mainwindow.cpp, but I can't. Who can help me make this work? The whole project is…
konalo
  • 15
  • 1
  • 4
0
votes
1 answer

Qt 5.7 QDockWidget default size

I am trying to have following setup: at start (when main window is opened) I want to have 2 QDockWidgets at left with width 400px and height 1/2 (each) of QMainWindows height. At the left, 3 QDockWidgets with width 400px and height 1/3 (each) of…
carobnodrvo
  • 1,021
  • 1
  • 9
  • 32
0
votes
1 answer

QFileDialog in c++: "no matching function for call"

I want to let the user choose a folder so I can display and sort its contents somewhere else. The best way to do this seems to be using QFileDialog. Here's a snippet of the code I'm using: > #include ..... void someEvent(){ QString…
Sphics
  • 88
  • 1
  • 9
0
votes
3 answers

Qt designer -- set style sheet -- hard coded now -- want to set programatically

I am using Qt designer to create a set of 32 status "lights." My lights are QLabels. So initialize my blank Qlabel to have a yellow style sheet and then i set each light to red or green based upon the text file input of Boolean data. My problem is…
0
votes
1 answer

How do I keep the buttons from changing style on adding them to a layout box?

I'm messing around in the QT UI designer and trying to add a horizontal layout box around some buttons and a spacer. But I'm getting some weird results: Here's the before image: And here's the after image: Not only did it not retain the order of…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
0
votes
0 answers

How to embed "large text" and "equations" in a GUI using Qt designer?

I am trying to design a simple GUI using Qt Designer (with python). I have already created two 'tabs' (pages), in the first tab a user can input variables and get let's say a calculated result. In the second tab, I would like to display a text…
0
votes
2 answers

Qt - Display animated GIF selected by QListWidget on MainWindow

thank you in advance for reading and help. I'm trying to make a GIF manager based on a QListWidget where you can select a GIF from the list (using on_*_itemClicked, as you can see below) and it will appear the animated GIF in the space below the…
0
votes
1 answer

I cannot figure out how to change my interface with QT Designer

I've created a new project using ImageViewer as a starting point, now I'd like to improve the UI adding some controls, so I've edited the mainwindow.ui with the QT Designer this way: but, when I build my project it doesn't reflect my changes. I've…
Daniele
  • 310
  • 3
  • 15
0
votes
0 answers

A few object of Qt Designer Form Class. Is few object = few dialog window?

I have a designer form class of some vehicles where constructor holds a index of vehicle: Vehicle::Vehicle(QWidget *parent, int _index) : QDialog(parent), ui(new Ui::Vehicle) { this->_index = _index; } In main class, I create an object of…
0
votes
1 answer

Making a plot in a second window using data from main window

I'm trying to make a program in which I have a main window and a second window. The second window should be opened by checking a Check-Box in the main window and closed by unchecking it. The following minimal example works already fine (thanks to…
Michael
  • 53
  • 2
  • 6
0
votes
1 answer

issue with ScrollArea in Pyqt using QtDesigner

I designed a window with QtDesigner and added a scrollarea and a layout in it, but the scroll area doesn't scroll, it shows the scroll bar but It cant be scrolled at all. from PyQt4 import QtCore, QtGui try: _fromUtf8 =…
Nadav Barak
  • 177
  • 1
  • 3
  • 14
0
votes
1 answer

PyQT QListWidgetItem specific item launch specific function

Using the QTDesigner I made a simple QListWidge that contains three items Apple Banana Orange My Goal, when one of those options is selected it launches a specific function. For some reason I cannot figure this out and I can't find anything within…
Thomas
  • 31
  • 4
0
votes
1 answer

How many times a button is clicked?

How to know how many times a button is clicked in pyqt ? where ui is prepared in qt-designer and imported into python as .ui file. Example: self.submit.clicked.connect(self.submit_application) and in def submit_application: how to know that…