Hi fellas,
I want to put a bar which I can put textfields or list boxs inside it and stays between the menubar and the main window's bar( the bar which resize and close icons stay).
Have you got an idea?
Hi fellas,
I want to put a bar which I can put textfields or list boxs inside it and stays between the menubar and the main window's bar( the bar which resize and close icons stay).
Have you got an idea?
The menu bar should be the top-most item in the layout. If you change that, you'll be breaking one of the fundamental UI design principles. If you are sure you want to do that, you have to access QMainWindow's layout() and insert the widgets you want there manually but I really wouldn't do that if I were you. Find another design even if it means putting a second QMenuBar instance somewhere in the window (which I wouldn't advise as well, better use a QToolBar or other regular widgets).
Hi,
First thanks for your valuable comments. I know it doesn't seem the correct solution but I tried many ways to perform this task which I failed at the end. I'am trying to add extra menu bar as a tabbed menu, which I don't know the exact way if there is a way to do that, and I will post the result as soos as I find a solution.
Regards, Zeki
You mean something like a ribbon?
Yeah..that's what I'am trying.
Well... there are three things to consider:
1. there is a ribbon implementation available somewhere in the internet but you may have to search for it
2. you can implement a ribbon-like widget using a dock widget
3. there are licensing issues when using a ribbon. Microsoft has some patent for using it in "office-like" applications or something so it's easy to fall of a cliff as most applications can be considered "office-like".
There is also the "ribbon sucks" argument, but that's subjective...
Hi,
Anyone got any idea about this topic?
Bookmarks