What I wanted is similar to the picture below.
Thank.
Use QMdiArea as the central widget of your MainWindow. And then you can put your widget in any position, which needs only a subclass of QMdiSubWindow. Believe me, this is a much better choice. I tried to do the same thing as you, and ended up using QMdiArea and QMdiSubWindow. This works great for me.
, void setAllowedAreas ( Qt::DockWidgetAreas areas ), ( , ). http://doc.qt.io/qt-5/qt.html#DockWidgetArea-enum. .
void setAllowedAreas ( Qt::DockWidgetAreas areas )
Constant Value Qt::LeftDockWidgetArea 0x1 Qt::RightDockWidgetArea 0x2 Qt::TopDockWidgetArea 0x4 Qt::BottomDockWidgetArea 0x8 Qt::AllDockWidgetAreas DockWidgetArea_Mask Qt::NoDockWidgetArea 0
, "QDockWidget" , , , , QDockWidget. QWidget, , - . - setPos ( , , ). , , QWidgets z, . QGraphicsView , , . - .
, , .
I am using pyqt5
self.map = QtWidgets.QDockWidget(self) self.map = setGeometry(self.width() - 300, self.height() - 300, 300, 300)
Source: https://habr.com/ru/post/1759376/More articles:Django URLField and HTML5? - html5Zend Framework and svn: external - svnhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1759373/automapping-sql-server-timestamp-columns-to-byte-using-fluent-nhibernate&usg=ALkJrhgLcH2yunvSWvZtxDv48Hb6UdCcDQxml attribute schema ref - attributesObjective-C не может назначить NSInteger переменной NSInteger? - objective-cAssociating TwoWay with UserControl - c #С членством в ASP.Net, может ли несколько поставщиков членства использоваться для входа на тот же сайт? - asp.net-membershipHow to extend DataMapper :: Resource with a custom method - ruby | fooobar.comLinq to Nhibernate - Compare 2 Lists - c #Is it better to use pure DOM methods or string concatenation to create a very dynamic xml file? - domAll Articles