Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Mac上使用Qt::Tool (Qt5)会出错

Mac上使用Qt::Tool (Qt5)会出错

Scheduled Pinned Locked Moved Chinese
1 Posts 1 Posters 1.8k 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.
  • H Offline
    H Offline
    harris_
    wrote on last edited by
    #1

    因为是图形工作软件,工作区域使用的是QGraphicsView,这样就导致了加入其它widget的时候设置不了透明度,只有采取设置
    @setWindowFlags(Qt::FramelessWindowHint | Qt::Tool);@

    设置为popup类型的子窗口。

    这样设置在Qt4下面没有问题,使用Qt5的时候Window上没有问题,但是在Mac上会出现透明的时候会出现阴影,多点几次基本就看不清了,拖动主窗口也会死掉。

    请问在Qt5的时候需要设置什么吗?谢谢!

    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