Questions tagged [qmdiarea]

The QMdiArea widget, part of the Qt framework, provides an area in which MDI windows are displayed.

QMdiArea functions, essentially, like a window manager for MDI windows. For instance, it draws the windows it manages on itself and arranges them in a cascading or tile pattern. QMdiArea is commonly used as the center widget in a QMainWindow to create MDI applications, but can also be placed in any layout.

64 questions
0
votes
0 answers

QMdiArea QTabBar transparency to show Mdi content underneath

I have a QMdiArea in which we have a 3D view and a tab bar. I want to make the background of the tab bar background to be transparent so that our 3D view area is bigger. I tried to make the tab bar background transparent with…
PaddleStroke
  • 63
  • 1
  • 6
0
votes
0 answers

how to recycle memory from subwindow in an mdiArea when it is closed?

I encountered a problem. When adding subwindow to a mdiarea, the memory occupied by the whole program will gradually increase, but when the subwindow in mdiarea is closed, the resource manager cannot reclaim its memory, here bellow is a demo-code, I…
bactone
  • 107
  • 1
  • 8
0
votes
1 answer

QMdiArea shows incorrectly

I have a problem when using QMdiArea in PyQt5, the following is what I have done: I create a demo UI with Qt designer, looks like: When I preview it in Qt designer, it looks OK: However, when I use pyqt5_uic to convert the .ui file to .py file,…
bactone
  • 107
  • 1
  • 8
0
votes
1 answer

multiple subwindow with same widget QMdiSubwindow

i want to change object in all my subwindows this is my code import sys from PyQt5.QtWidgets import * from PyQt5 import QtWidgets class MainWindow(QtWidgets.QMainWindow): count = 0 def __init__(self, parent=None): super(MainWindow,…
Monarf
  • 19
  • 2
0
votes
1 answer

Horizontally tiling QMdiArea sub winows that contains QScrollArea

The following piece of code (mainwindow.cpp) is a simplified version of my problem. I tried to tile QMdiArea sub windows horizontally, but somehow the sub windows' are not fully shown - the horizontal scroll bars at the bottom of those sub windows…
sofname
  • 429
  • 1
  • 5
  • 20
0
votes
1 answer

How to set QMdiAread TabBar Width

I want to set the QMdiArea TabBar width by setStyleSheetfunction,but it can not set the width, it can set the height.Now I have no idea how to solve the problem, can you give me a idea? Thanks a lot.Here is my code. # -*- coding: utf-8 -*- import…
jinmingLu
  • 1
  • 1
0
votes
1 answer

How to display QLabel inside qwidget from active QMdiAreaSubwindow in statusbar?

I have a app that uses QMdiArea. I want the text in the statusbar to update when another QMdiAreaSubwindow becomes active. So the text in the statusbar should become the same as the Qlabel text inside the QWidget which is been displayed inside the…
Esocoder
  • 1,032
  • 1
  • 19
  • 40
0
votes
1 answer

PYQT5 MDI subwindow the controls move upward than those in design window Why ? Any Solution?

I have designed Main window & subwindow in PYQT5 designer When I run the code the controls move upwards in the subwindow But when the subwindow is maximized the controls look correctly spaced from top of window Also when I resize the subwindow…
user2035041
  • 69
  • 3
  • 13
0
votes
1 answer

PyQt5 MDI Subwindow as a class

I have a QMainWindow with a menu and a mdiArea. When I click on a menu item I need to display a qDialog with, say, a datalist one it. I'd like to build the QDialog with the datalist on it as it's own class; however, I do not know how to attach it…
Elcid_91
  • 1,571
  • 4
  • 24
  • 50
0
votes
1 answer

How to get the objectName of MDI Area subwindow?

I have tried self.mdiArea.activeSubWindow().objectName self.mdiArea.activeSubWindow().objectName() But neither of them gave me the object name I set: self.subwindow.setObjectName("subwindow_1") Any advice? Thanks a lot. Full testing code is…
Tom
  • 25
  • 5
0
votes
0 answers

Qt Main Window not repainting MDI area

I have an application that have a main window with an MDI area that uses the whole window. When the application is opened it is not maximized. If i open the child window and then close it, the ghost of the window still shows. If i open a another…
Dan3460
  • 95
  • 3
  • 13
0
votes
1 answer

Dynamic implementation of QMdiSubWindow into QMdiArea in Qtabwidget

There is my problem, I want to implement new subwindow in the mdiArea of the active tab of tabwidget. But the only things y can do today, is adding a widget in the last tab/mdiArea created (my code below). How can I switch dynamically (without…
Enao
  • 1
  • 1
0
votes
1 answer

GUI MDI Subwindow Only shows on first Button Press

I hope I have a simple question here. I have created a very large GUI with QT Designer and a subwindow for the MDI area. I have used pyuic5 to convert it from a .ui file to a .py file. I have written a function to open that subwindow when a button…
laxer
  • 720
  • 11
  • 41
0
votes
1 answer

Porting PyQt4 QWorkspace to PyQt5 QMdiArea -- subWindowList method

I've run into a snag porting a program example from "Rapid GUI Programming with Python and Qt" from PyQt4 to PyQt5. The sample program demonstrates an MDI application from which multiple text edit windows can be run within the main window. I used…
Kor Kiley
  • 1
  • 4
0
votes
1 answer

Add QMdiSubWindow to current QStackedLayout

So I have this code: QStackedLayout *layout = new QStackedLayout; QMdiArea *mdi1 = new QMdiArea; mdi1->addSubWindow(new QMdiSubWindow); layout->addWidget(mdi1); QMdiArea *a = (QMdiArea *) layout->currentWidget(); a->addSubWindow(new…