Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. qt5.7.1,在arm平台是,使用exec()方式打开子窗口,点父窗口后,子窗口消失且父窗口也不能点
Forum Updated to NodeBB v4.3 + New Features

qt5.7.1,在arm平台是,使用exec()方式打开子窗口,点父窗口后,子窗口消失且父窗口也不能点

Scheduled Pinned Locked Moved Unsolved Chinese
2 Posts 2 Posters 447 Views
  • 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.
  • Q Offline
    Q Offline
    Qt_user_wx
    wrote on last edited by
    #1

    同样的代码,在ubuntu上,是可以正常运行的,子窗口打开后,父窗口无法点击,只能关了子窗口后才能点父窗口。
    但交叉编译后,就工作不正常了,子窗口打开后,子窗口小于父窗口,点子窗口外的区域,子窗口消失,父窗口也无法点击了。
    请问,这是哪里的问题。
    子窗口,调用了
    this->setWindowFlags(Qt::Tool| Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);

    1 Reply Last reply
    0
    • W Offline
      W Offline
      whut
      wrote on last edited by
      #2

      感觉直接设置窗口的模态Modal属性

      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