Hi, when i set my mainwindow to fullscreen the menu bar doesn't appear. It's possible to set it visible or i need create buttons?
Hi, when i set my mainwindow to fullscreen the menu bar doesn't appear. It's possible to set it visible or i need create buttons?
SoftkeysVisibleHint flag show menu in full screen application. Just add following line in your widget.
setWindowFlags( windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
I added like tou said but the aplication freak out.#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
#if defined(Q_WS_S60)
//w.showMaximized();
w.showFullScreen();
w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
#else
w.show();
#endif
return a.exec();
}
My aplication normal:
My aplication with your code:![]()
What happen if you reverse the order of function call??
i.e from
To.w.showFullScreen();
w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
w.showFullScreen();