TheIndependentAquarius
15th February 2012, 12:16
Qt :: WindowFlags flags = 0;
// Makes the Pomodoro stay on the top of all windows.
flags |= Qt :: WindowStaysOnTopHint;
// Removes minimize, maximize, and close buttons.
flags |= Qt :: WindowTitleHint | Qt :: CustomizeWindowHint;
window->setWindowFlags (flags);
window->setWindowTitle ("Failing to plan is planning to fail");
This removes minimize, maximize, and close buttons. The default menu on the left is still there. How to get rid of that?
I want the title bar to be there, but just want the menu to be removed.
Default menu contains: Minimize, Maximize, Move etc options.
// Makes the Pomodoro stay on the top of all windows.
flags |= Qt :: WindowStaysOnTopHint;
// Removes minimize, maximize, and close buttons.
flags |= Qt :: WindowTitleHint | Qt :: CustomizeWindowHint;
window->setWindowFlags (flags);
window->setWindowTitle ("Failing to plan is planning to fail");
This removes minimize, maximize, and close buttons. The default menu on the left is still there. How to get rid of that?
I want the title bar to be there, but just want the menu to be removed.
Default menu contains: Minimize, Maximize, Move etc options.