Qwidget to break the layout or the pop-up window within the current window

Source: Internet
Author: User

but = Qtwidgets.qtoolbutton (Dialog2)    but.settext (' * * ')    but.setautoraise (True)    layout.addwidget (But)    Dialog2.setwindowflags (QtCore.Qt.FramelessWindowHint | QtCore.Qt.Tool)      dialog2.setwindowopacity (1)    Dialog2.setattribute (QtCore.Qt.WA_TranslucentBackground)

Qt.popup window indicates that the widget was a pop-up top-level window, i.e. that it was modal, but had a Window sys TEM frame appropriate for pop-up menus.

Qt.tool indicates the widget is a Tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections O F tool buttons. If There is a parent, the tool window would always be kept on top of it. If there isn ' t a parent, you may consider using Qt::windowstaysontophint as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also is combined with qt::framelesswindowhint. On OS X, tool windows correspond to the floating class of Windows. This means, the window lives on a level above normal windows; It impossible to put a normal window on top of it. By default, tool windows would disappear when the application is inactive. This can is controlled by the Qt::wa_macalwaysshowtoolwindow attribute.

Qwidget to break the layout or the pop-up window within the current window

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.