If widget is None, any custom title bar widget previously set on the dock widget is removed, but not deleted, and the default title bar will be used instead. Sets an arbitrary widget as the dock widget’s title bar. setTitleBarWidget ( widget ) ¶ Parameters This property holds areas where the dock widget may be placed. The dock widget cannot be closed, moved, or floated. Since new features might be added in future releases, the look and behavior of dock widgets might change if you use this flag. (Deprecated) The dock widget can be closed, moved, and floated. This can be used to increase the amount of vertical space in a QMainWindow. The dock widget displays a vertical title bar on its left side. The dock widget can be detached from the main window, and floated as an independent window. The dock widget can be moved between docks by the user. On some systems the dock widget always has a close button when it’s floating (for example on MacOS 10.5). For a more nuanced discussion, see Raymond Chen's blog post on the subject.SetWindowTitle(). On Windows in particular, someone might suggest that you make the floating window a child of the desktop window, but let me take this opportunity to strongly advise you against doing that. I imagine that it's a similar state of affairs for the other target operating systems. Read more about the various types of windows here, at least assuming that you're using Windows. In order to have a standalone window, you'll need to create an overlapped window. I'm guessing that a QDockWidget class implements a floating tool palette or other form of pop-up window. That will probably also require that you change the type of window that your floating window represents. The solution obviously is to break the ownership relationship between your floating window and the main window. And a child window cannot be visible when its owner window is minimized. Or in other words, the floating window is a child of the main window. The floating window is almost certainly being minimized when your main window is minimized because the main window owns the child window.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |