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

How can I add a "new tab" button next to the tabs of a QMdiArea in tabbed view mode?

I'd like to have a "new tab" button much like Chrome or Firefox has for my QMdiArea. I can make a button or menu item somewhere that adds a new subdocument to the MDI thing, but how can I make it a visually appealing tiny tab with a "+" as label?…
rubenvb
  • 74,642
  • 33
  • 187
  • 332
8
votes
0 answers

Use custom tab bar with QMdiArea

I see that QMdiArea has a tabbed view mode. I want to be able to split the main window with two QMdiArea widgets and to be able to drag and drop tabs between each of them. I have already done it with a simple QTabWidget where I can set custom tab…
Dmitry K.
  • 313
  • 3
  • 17
5
votes
5 answers

Qt - Remove shortcut -- Ambiguous shortcut overload

Extraneous Information: I am attempting to build an application using Qt. This application features a QMdiArea and a child-window. My child-window will have a menu which can be integrated into the QMdiArea or segregated and attached to the child…
Serodis
  • 2,092
  • 4
  • 25
  • 34
3
votes
2 answers

Removing icon and style of QMdiSubWindow

I notice that windows from QMdiarea needs to be style customized. I want to remove icon which appears on topleft of QMdiSubWindow widget and at the same time change this ugly blue color of window to something which look pretty good. I have tried my…
Pavel.D
  • 561
  • 1
  • 15
  • 41
3
votes
1 answer

Center subwindows in qmdiarea

Is there an attribute to position subwindows in qmdiarea? I’m trying to center subwindow in middle of mainwindow on startup (mdiarea) I’m working on a mcve but haven’t finished it, wanted to see if anyone has tried doing this, and how they did…
Drees
  • 688
  • 1
  • 6
  • 21
3
votes
1 answer

Intercept widget move/resize before it happens

I'm using QMdiSubWindow, I want to capture any input which is attempting to modify the size/shape/position of the window and filter/modify the resulting position and size so that the widget is aligned to a grid. QResizeEvent seems to be too late,…
Troyseph
  • 4,960
  • 3
  • 38
  • 61
3
votes
1 answer

QDockWidget in QMdiArea subwindow not dockable on top and bottom

In my current project, I implemented a Qt application with several MDI forms that are containing several QDockWidgets. The application looks roughly like that: Here is the code snippet: #include #include #include…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
3
votes
0 answers

Correct way to close/remove QMdiArea subwindow?

I have a simple application that I'm writing using PyQt 4 that includes a MainWindow that consists of a QMdiArea. When the user starts a new session (new experiment), two windows are generated. The user can also select from a list of analysis…
dan_g
  • 2,712
  • 5
  • 25
  • 44
3
votes
0 answers

Size and position of child windows in QMdiArea

I have QMdiArea object in QMainWindow which I did not have set with setCentralWidget() but as mentioned below. MainWindow::createMdiArea() { QMdiArea mdiArea = new QMdiArea(this) mdiArea.setGeometry(0,0,1024,600); mdiArea.show(); } I…
Farrukh Arshad
  • 1,391
  • 2
  • 16
  • 26
2
votes
1 answer

QMdiArea Leaving the window

Is it possible to prevent the windows created in the QMdiArea from going out of the window down or sideways? Like the blocking there is to take it out upwards. At the moment it is possible to pull out the whole window of the QMdiArea. Edit: Is it…
antho
  • 534
  • 4
  • 18
2
votes
1 answer

PYQT5 mdiarea how to check if Subwindow is inside workspace

I am currently writing a pyqt5 application with several widgets using a qmdiarea and mdisubwindows. I have a main subwindow showing an image and several widgets associated to that main subwindow. Eventually, I want to get rid of all accesory…
2
votes
3 answers

Is it possible to rename a qt sub window?

I set up a sub windwow in the QMdiArea of my mainwindow. Then I made a QDialog in which I want the user to enter the title name for the Sub window. But I always get an error when trying to Change the windowTitle() to that variable. Is there any way…
hbrown
  • 41
  • 4
2
votes
0 answers

QMdiArea subwindow size after cascadeSubWindows()

I try to make my first MDI-app. I've made mainwindow with QMdiArea as centralwidget. I need to add subwindow ProjectWindow with big QTableWidget. But size of added subwindow is 220x64 instead of 800x600. 220x64 is sizeHint of ProjectWindow and…
Dani Minch
  • 61
  • 5
2
votes
1 answer

Image on Qt QMdiArea background

Qt developers! Is there are way to add image on the background of my midArea like on picture below? I know I can use something like this QImage img("logo.jpg"); mdiArea->setBackground(img); But I don't need any repeat of my image on the…
DanilGholtsman
  • 2,354
  • 4
  • 38
  • 69
2
votes
1 answer

Denying subwindow change in QMdiArea

I have a QMdiArea with several QMdiSubWindows. While construction, the QMdiArea is initialized as TabbedView and DocumentMode, so it looks like a QTabWidget by default. When user clicks the tab to switch the sub windows, I want to add a…
Liven
  • 51
  • 2
1
2 3 4 5