Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「WindowStaysOnTopHint」がウィジェット「ww」で機能しないのはなぜですか?
Dialog w; widget ww; ww.setWindowFlags(Qt::WindowStaysOnTopHint); ww.setWindowFlags(Qt::FramelessWindowHint); ww.setFixedSize(206,206); w.show(); ww.show();
に置き換えているからですQt::FramelessWindowHint。
Qt::FramelessWindowHint
両方が必要な場合:
ww.setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);