Call show() after you set the flag: Qt::WindowFlags flags = windowFlags(); setWindowFlags(flags | Qt::WindowStaysOnTopHint); show();.
確定! 回上一頁