Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. createWindowContainer doesn't work when I set FramelessWindowHint and WA_TranslucentBackground

createWindowContainer doesn't work when I set FramelessWindowHint and WA_TranslucentBackground

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 316 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
    wali
    wrote on last edited by
    #1

    QtWidgets.QWidget.createWindowContainer(QtGui.QWindow.fromWinId(hwnd)) doesn't work when I set
    setWindowFlag(QtCore.Qt.FramelessWindowHint)
    setAttribute(Qt.WA_TranslucentBackground)
    It seems it needs a Background to display another window, does anyone have another solution? The purpose when I use FramelessWindowHint and WA_TranslucentBackground is to round the corner of QMainWindow.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of PySide6 / PyQt6 are you using ?
      On which OS ?

      Can you provide a minimal script that shows this behavior ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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