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
9
votes
1 answer

How to set display ratio between widgets in Qt layout?

In a tab page I do have one tree view widget and one tab widget inside the vertical layout, I want to set 60% of screen space to tree view and 40% to tab widget, always. How can I do this in Qt Designer ? Platform: Qt Creator 2.4.1 / Win 7.
Prady
  • 663
  • 3
  • 11
  • 28
8
votes
2 answers

Adding user built widgets to a ui file in qt creator

The qt designer portion of qt creator has many built in widgets. But let's say I want to add custom widgets created in the same qt project to the ui file of the window. By taking these steps: Create a new Qt GUI application with a main window,…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
8
votes
2 answers

How to integrate PyQt designer in Eclipse?

I'm trying to integrate the pydev, pyqt, python and eclipse. Now the code can be runing without error. And I know to make the GUI in Qt Designer. and then modified it in Eclipse. Now I want to integrate the Qt Designer of PyQt to Eclipse. Just like…
sunny2016
  • 1,345
  • 3
  • 13
  • 22
8
votes
1 answer

In qt designer QButtonGroup is not available in the Widget Box.

I use designer to build my GUI and load the saved xml in a python script. I've been using QGroupBox to contain radio buttons but would prefer to use QButtonGroup. The problem is that QButtonGroup is not available in the 'Widget Box' within the…
BlackBear
  • 81
  • 1
  • 4
8
votes
1 answer

Qt aligning the application to the top left corner on screen

Recently I am working on a Qt Gui application with c++ and I need to align my window to top left corner when I run the application. (It should open on the top left corner by default). Is there any way I can do this on the code or by Qt designer? I…
BUY
  • 705
  • 1
  • 11
  • 30
8
votes
1 answer

Apply chrome like tabs in Qt

Ivan made this -- see http://ivan.fomentgroup.org/blog/2009/03/29/instant-chrome/ -- but I don't know how since I am new to Qt. Does anyone have Idea how to achieve this?
flakerimi
  • 2,580
  • 3
  • 29
  • 49
8
votes
1 answer

Set a scale for a background-image

I just created a resource file for my project, which got 5 prefixes (Window, background, etc). My main problem is that, when using the Qt Designer, I go to stylesheet, open it up, Add resource -> background-image. Unfortunately my picture is way too…
ShadowEntun
  • 85
  • 1
  • 7
8
votes
2 answers

QVBoxLayout: How to align widgets to the top using Qt designer

I'm using qt designer only for ui layout This is almost the same question as this one : QVBoxLayout: How to vertically align widgets to the top instead of the center but i'm interested on how to do that in qt designer. I don't see any option in…
bysreg
  • 793
  • 1
  • 9
  • 30
8
votes
6 answers

Change QPushButton Icon on hover and pressed

I'm trying to change the Icon of a QpushButton on hover and pressed, I'm using QtDesigner with stylesheets. I tried this QpushButton{ qproperty-icon:url(:/images/start.png); } QPushButton:hover { …
Zeyad Obaia
  • 686
  • 1
  • 6
  • 21
8
votes
1 answer

Qt5 doesn't recognised shortcuts unless actions are added to a toolbar

I have a Qt4 application with menu entries with short-cuts (nothing fancy, things like Ctrl+O to open files, Ctrl+S to save ...). When compiled with Qt5, the short-cuts do not work although the actions are attached to the menu bar. They work again…
PierreBdR
  • 42,120
  • 10
  • 46
  • 62
8
votes
3 answers

How to set the background color of a tab widget in Qt Creator?

I’m using Qt Creator. In my GUI I use a tab widget. This widget should have the same grey background color as the main window (picture A). I accomplished this by editing the Style Sheet in Qt Designer with: background-colour: rgb(240, 240,…
Semjon Mössinger
  • 1,798
  • 3
  • 22
  • 32
7
votes
1 answer

How does one force PyCharm to open a file as XML?

I have some .ui files generated by Qt Designer; they are simple XML files but PyCharm refuses to open them. The filetype is listed among the ones "recognized" by PyCharm, but I can't find a way to specify how it should deal with it. Does anybody…
Giacomo Lacava
  • 1,784
  • 13
  • 25
7
votes
2 answers

Where is the QtDesigner in PyQt6?

I find bindings/QtDesigner directory, but there are all .sip file. In the package website on pypi, it says The sip-install tool will also install the bindings from the sdist package but will allow you to configure many aspects of the…
ZhiyuanLck
  • 191
  • 1
  • 1
  • 5
7
votes
0 answers

How can I set a theme in Qt Designer?

I design my user interface with Qt Designer and then load the *.ui file in Python. For buttons I want to add Icons from the Breeze theme. In Qt Designer I can add icons via "Set icon From Theme..." But this is loading the icon from a different…
Chris
  • 2,461
  • 1
  • 23
  • 29
7
votes
2 answers

PyQt5 Fixed Window Size

I am trying to set my window / QDialog to not be resizable. I found the following example self.setFixedSize(self.size()) I'm not sure how to implement this. I can put it in the .py file generated from Qt Designer or explicitly…
Alex
  • 81
  • 1
  • 1
  • 3