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

Why can't I set a layout for a page in a QStackedWidget in designer?

Steps to reproduce in designer for Qt 4.8.0 I create a new dialog form in Qt Designer I add a QStackedWidget to the dialog I set the layout of the dialog to make the stacked layout size with the dialog I add a few controls to page one in the…
cppguy
  • 3,611
  • 2
  • 21
  • 36
14
votes
2 answers

Integrate Qt Designer and PyCharm

There are plenty of minor challenges getting PyQt5 and Qt Designer to play nice with PyCharm, but after getting all the small steps in place, I cannot help but wonder if I missed the obvious. What is the most straightforward way to integrate PyCharm…
Grismar
  • 27,561
  • 4
  • 31
  • 54
14
votes
2 answers

Qt5 Double range slider

There are many postings online about trying to make a double range slider The most common answer I found is to use libqxt. However, going to the website it clearly states it is not maintained due to internal api changes with newer versions of Qt.…
user-2147482637
  • 2,115
  • 8
  • 35
  • 56
14
votes
2 answers

QMenu item text disappears when icon added

I am attempting to add an icon to my QMenu using Qt Designer, however I realized that my text disappears when my icon is added. Is there any way for me to show my icon next to my text?
MistyD
  • 16,373
  • 40
  • 138
  • 240
13
votes
1 answer

Is there any way to set the visibility of QLabel in Qt Designer

I'm trying to make a QLabel not visible by default in Qt Designer. I can hard code it but I was wondering if there was a way to set this using the designer. m_uiForm.aLabel->setVisible(false);
Robert Whitley
  • 1,051
  • 5
  • 14
  • 28
13
votes
3 answers

How to equally distribute the width of QSplitter

I have a problem with adjusting width of QSplitter. I prepared UI in Qt Designer and it looks now like that: Designer view: And here is my object inspector: My question is how to divide the width of QSplitter equally over the left and right area.…
drewpol
  • 665
  • 1
  • 6
  • 26
12
votes
4 answers

Create widget array using Qt Designer?

In Qt Designer I'm creating multiple labels (for instance): my_label1 my_label2 my_label3 ... my_label n Then if I want to hide them I do this: ui->my_label1->hide(); ui->my_label2->hide(); ui->my_label3->hide(); ... ui->my_labeln->hide(); However…
Fracu
  • 835
  • 1
  • 13
  • 28
12
votes
5 answers

Clear QLineEdit on click event

I am using the given code, I want the user to enter text in the QLineEdit widget, press the Copy! button and see the inputted text replace the 'N/A' label. My questions is: following this procedure, how can I clear the text inputted in the QLineEdit…
adam
  • 179
  • 1
  • 1
  • 12
12
votes
1 answer

Python - Qt. How to make a Terminal Window for Telnet or ssh server interaction

i am making a PyQt application, and i want to make something like a Terminal Window, where the user can interact with a Telnet or ssh server. My first idea was to have a Window with a black QPlainTextEdit and a scrollbar. I am new to python-Qt world…
athspk
  • 6,722
  • 7
  • 37
  • 51
12
votes
3 answers

Qt Designer; difficulty placing widgets in the right parent

Using the Qt Designer I've made a couple of QFrames in each other, each having a horizontal layout. Their stylesheet predicates that they should have no margin nor a padding. This means that in the Qt Designers view as well as in the final result,…
Taco de Wolff
  • 1,682
  • 3
  • 17
  • 34
12
votes
2 answers

Overlapping widgets in QtDesigner

I want to overlay two widgets in QtDesigner: There is the big QTextBrowser, and below in the down right corner should be a non-interactiv label that I am going to use as a drag-grip to resize the window (the main widget is frameless so I need to…
user2366975
  • 4,350
  • 9
  • 47
  • 87
12
votes
2 answers

QIcon.fromTheme not displaying icon in PyQt

I am having troubles to display the icon of a QAction selected from the current icon theme. I made the ui with Qt designer and exported it with pyuic4 sample.ui > sample.py. After setting the icon from the theme with…
Hypergraphe
  • 153
  • 1
  • 1
  • 6
12
votes
3 answers

Change rectangular Qt button to round

I'm trying to create a round button in Qt. A simple form with a single button QPushButton was created in designer. I'm attempting to turn this into a round button using setMask(). As soon as setMask() is applied the button disappeares. Does a…
DarwinIcesurfer
  • 1,073
  • 4
  • 25
  • 42
11
votes
3 answers

How do I insert QTabBar in Qt Designer?

This might very well be very stupid question, but I can not find QTabBar in Qt Designer. There is QTabWidged in the "Containers" group, but it is not the same - I don't need different pages, I just need the tab bar. (I am using 4.7.2 version of Qt…
gorn
  • 5,042
  • 7
  • 31
  • 46
11
votes
5 answers

ImportError: No module named 'resource_rc'

I made a simple program with PyQt GUI, and compiled '.ui' file. # Form implementation generated from reading ui file 'main.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import…
QueN
  • 163
  • 1
  • 1
  • 13