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

how to access variable from another class in python

I would like to access variable lotId & qty_selected in class 'InputDialog' and to be use in class 'Mainwindow'. I did tried to find a solution in net but unable to solve it until now. can anyone show how to make it? Here is my current code: from…
faizal_a
  • 93
  • 4
  • 15
0
votes
1 answer

From uic output to C++ code in Qt

In the interest of better learning Qt, I would like to learn how it would be possible to use the C++ header file output of Qt's User Interface Compiler to programmatically recreate the same UI design (e.g. as the one derived by using the Designer in…
user6167676
0
votes
0 answers

Using Qt Designer and Python to open a window

I am new to Qt Designer and I want to do a simple thing: open the window of the GUI that I created (ImageViewer.py); but it doesn't work. So if you have any idea why I can't open the GUI, please help me. This is ImageViewer.py: from PyQt4.QtCore…
ronyco
  • 11
  • 1
0
votes
2 answers

How to make grid of album covers QT python

Currently i am trying to do it with QTableWidget but i cant seem to adjust the width of the table to the parent element, so when resizing is made, the columns need to increase. QtableWidget is placed in QTabWidget in the first tab. For more info, it…
user5804127
  • 49
  • 11
0
votes
0 answers

Python3 and Qt Designer - Display an image in main window

I'm still new with python and Qt designer. I would like to develop an application where user need to press the 'pushbutton' in order to view the image(from local directory path) on GUI mainwindow.This will keep repeating until complete number of…
faizal_a
  • 93
  • 4
  • 15
0
votes
1 answer

Connecting signals to slots up the directory tree with PySide

I am trying to separate UI components from functional code as much as I can, so my PySide is application structured like this main.py package\ app.py __init__.py ui\ mainwindow.py __init__.py Main is just a simple starter if…
chwi
  • 2,752
  • 2
  • 41
  • 66
0
votes
1 answer

How to create an preferences window similar to VLC with Qt?

I want to create an preferences window somehow similar to VLC. For that purpose I added a QTreeWidget for selecting the different preferences. I want to group the QWidgets, which belong together, in a parent QWidget so I can hide them all at once. I…
honiahaka10
  • 772
  • 4
  • 9
  • 29
0
votes
1 answer

Is there a way to prevent Qt Designer from applying properties?

I have a few custom widget that I promote from QWidget or QFrame, but I would like the constructor to be able to set a list of properties to fixed, and not have to change it in Qt Desigenr property list each time I add a one of these custom wdigets,…
Dijdkay
  • 56
  • 1
  • 5
0
votes
2 answers

QAction doesn't show QMenu

I'm creating my UI from Qt Designer and it generares this code: toolBar = new QToolBar(MainWindow); QIcon icon; icon.addFile(QStringLiteral(":/main"), QSize(), QIcon::Normal, QIcon::Off); MainWindow->addToolBar(Qt::TopToolBarArea,…
Joel
  • 1,805
  • 1
  • 22
  • 22
0
votes
1 answer

Display Web cam Python

I have this code for web cam and should be displayed in the window (designed in Qt designer) this code works well but now i have two cam windows, one in my Main window (form designed in Qt Designer) and one out of the Main window. def…
Alek
  • 45
  • 4
0
votes
1 answer

Pyside + Qt Designer Better Coding

I want to improve my code but currently have not much idea how. So I used Qt Designer and created a main window plus 3 dialogs which can be opened from main window. Converted .ui files to .py files and created the MainWindow class which manages…
0
votes
1 answer

I can change all the qt wingets background except window

I'm facing a problem, I cant change the backgroun from a qt window. I can change the background of my MainWindow and all the other widgets but when I try to do that in another window it dont change. I'm using the same image for all the widgets and…
superpichon
  • 92
  • 1
  • 8
0
votes
1 answer

How to display a selected field unique values from a selected layer as rows headers in QTableWidget using python for a QGIS plugin?

To build a form in Qt Designer for a QGIS plugin that does the following: After the user has selected a layer and a field, from comboboxes, the unique values of this field to be displayed as rows headers in QTableWidget using python
Eleftheria
  • 143
  • 2
  • 7
0
votes
1 answer

How to click multiple times on QRadioButton but only run function once?

I have 2 radio buttons. The first one, radio1, is connected to a function func() and inside this function connects a push button, pushButton, to another function print_me(). This is the code stripped down: radio =…
Joseph
  • 586
  • 1
  • 13
  • 32
0
votes
1 answer

How to print accumulated geometric area when checking multiple QCheckBox?

I am developing a plugin for the GIS software, QGIS 2.14.3. I am also using Qt Designer 4.8.5. I have several checkboxes which, when individually checked, executes their associated function. This selects polygon features on a GIS map and prints the…
Joseph
  • 586
  • 1
  • 13
  • 32
1 2 3
99
100