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.
Qt::Tool旗に問題があります。Qt::Toolフラグ付きの新しいウィジェットを作成すると、メインウィンドウの上部に表示されます。しかし、メインウィンドウに戻ってアクティブにすると、ツールウィジェットが前面に表示されたままになるため、メインウィンドウが完全に表示されません。
Qt::Tool
Qt::WindowStaysOnTopHintアクティブではありません。念のため-環境はKDE4です
Qt::WindowStaysOnTopHint
前もって感謝します。
これは、ツールウィンドウのポイントのようなものです。自動的にトップに留まります。通常のウィンドウが必要で、タイトルバーがない場合は、ツールウィンドウを作成する代わりにそれを実行します(つまり、(QWidget* parent, Qt::WindowFlags f)コンストラクターまたはsetWindowFlagsメソッドを使用して、ウィンドウのフラグでQt :: WindowTitleHintの設定を解除します)。
(QWidget* parent, Qt::WindowFlags f)
setWindowFlags