Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. irregular shaped widget problem with X11BypassWindowManagerHint flag
Forum Updated to NodeBB v4.3 + New Features

irregular shaped widget problem with X11BypassWindowManagerHint flag

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 619 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wlink
    wrote on 30 Jul 2015, 22:59 last edited by
    #1

    Hi,
    I'm a new commer of Qt, I have a QWidget based irregular shaped window that needs to be TOP MOST on linux. The flags of the widget are set as:
    setWindowFlag(Qt:: Qt::Widget | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint );
    and the shape of the widget is defined by the mask of a QPixMap image.

    It is ok until now, but I need to change dynamically the shape of the widget every time I get a new image. The problem I have is that the shape of widget can not change accordingly with setMask of the image.

    I know, setMask() works if I remove X11BypassWindowManagerHint flag from the widget, but I need to keep this flag so as that the widget might stay TOP MOST.

    Do you have any idea to solve this problem? I'am using Qt5.2.1

    Any hints will be welcome!

    1 Reply Last reply
    0

    1/1

    30 Jul 2015, 22:59

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved