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
7
votes
3 answers

How to add a QVideoWidget in Qt Designer?

I want to insert video in blue box(ui image) but I don't know how to insert video file. My code is here. I don't know how to add video... Just know example that make video player ... import sys from PyQt5 import QtWidgets from PyQt5 import…
HyeonGeun Park
  • 73
  • 1
  • 1
  • 5
7
votes
2 answers

QtDesigner changes will be lost after redesign User Interface

I'm using Qt Designer for design GUI to use in python, after designing my desired UI in Qt Designer, convert it to python code and then I changed generated code to do some action in my python code, but if I changed the UI with Qt Designer and…
Ahad aghapour
  • 2,453
  • 1
  • 24
  • 33
7
votes
4 answers

Python Win 3.6.0 x64 issue, missing qt designer exe after pip3 install pyqt5

I'm a Python newbie and trying to start my first application and am struggling to workout how to use Qt Designer with pyQT5. I've been using the next command which installs pyqt5.7.1: pip3 install pyqt5 After the install, I have a…
user2908926
  • 195
  • 1
  • 2
  • 10
7
votes
4 answers

How can I implement the button, that holds an action (QAction) and can connect with one in designtime in QtDesigner?

I want to use an approach, when most of application commands hold in QActions, so that I could drag actions easily into menu, or toolbar, or button, or anything. So, I need to implement such a button. It is easy to write some class, that will hold…
Maxim Popravko
  • 4,100
  • 3
  • 29
  • 43
7
votes
1 answer

showing an image with Graphics View widget

I'm new to qt designer and python. I want to created a simple project that I should display an image. I used "Graphics View" widget and I named it "graphicsView". I wrote these function: def function(self): …
hamid kavianathar
  • 301
  • 2
  • 4
  • 13
7
votes
1 answer

Grid Layout does not divide the space equally in Qt Designer

When the window contains QWebView and QGraphicsView, the Grid Layout setting does not divide the spaces equally. Is there good way to separate the two spaces equally with the window resize compatibility?
Licht Takeuchi
  • 103
  • 1
  • 6
7
votes
0 answers

Qt Creator as Python IDE?

I know that the routine method for using Qt framework for python(pyQt), especially for GUI applications is to use Qt Designer(for building the GUI) and after that importing that generated GUI python code into your python class and continue the logic…
wiki
  • 1,877
  • 2
  • 31
  • 47
7
votes
4 answers

C++ over Qt : Controlling transparency of Labels and Buttons

Well, I was again trying my hands on a Linux GUI app on Qt Creator, I added couple of images in a Qt resource file of my project. And I tried to have a nice background in my main window and other windows and dialogs. I was using from the stylesheets…
RicoRicochet
  • 2,249
  • 9
  • 28
  • 53
7
votes
1 answer

Qt & Qt Designer - Making widget fill the parent without padding

I wanted to make my widget fill the parent window, even when the window resizes, so I read this: How to make a Qt Widget grow with the window size? But this solution created a new problem: my widget automatically re-sizes to the size of the window,…
Name
  • 2,037
  • 3
  • 19
  • 28
7
votes
2 answers

How to create new PyQt4 windows from an existing window?

I've been trying to call a new window from an existing one using python3 and Qt4. I've created two windows using Qt Designer (the main application and another one), and I've converted the .ui files generated by Qt Designer into .py scripts - but I…
7
votes
2 answers

Custom QDockWidget display

How would you get a display of dockwidgets/centralwidget in which the dockwidget in the Qt::BottomDockWidgetArea or Qt::TopDockWidgetArea doesn't take Qt::LeftDockWidgetArea nor Qt::RighDockWidgetArea space? This is the actual display, with 2…
user1006989
6
votes
2 answers

how to use ui file for making a simple widget?

i have a simple window with a quit button in qt.The working code is shown below #include #include #include class MyWidget : public QWidget { public: MyWidget(QWidget *parent =…
user765970
6
votes
2 answers

PyQt4 - Custom widget class structure?

During regular intervals of my program, a block (of 3 stacked) widgets need to be added to a horizontal layout. Since the widgets within each block are important to eachother, I wish to encapsulate each stack as it's own widget (making the layout…
Anti Earth
  • 4,671
  • 13
  • 52
  • 83
6
votes
2 answers

Using QUiLoader and UI files in PySide to dynamically create user interface at run-time

I'm really having a hard time connecting slots from Python to Qt Designer UI files. I've been through all tutorials I could find on PySide (ex: http://zetcode.com/gui/pysidetutorial/eventsandsignals/) Its quite easy when you set up the GUI in code,…
ninjamosh
  • 63
  • 1
  • 3
6
votes
2 answers

Qt: Is it possible to connect a signal to a signal in Qt designer

I have been reading in the signals & slots documentation and it says that you can connect a signal to a signal and trigger the slot thats connected to the second signal in the chain. I cant find a way to do this in Qt designer, it only lets you…
jonathan topf
  • 7,897
  • 17
  • 55
  • 85