I don't see any way how to add a menuBar to a QDialog, only to QMainWindow. Is it possible ?
I don't see any way how to add a menuBar to a QDialog, only to QMainWindow. Is it possible ?
no, you can't add a menu bar in a dialog, only QMainWindow can have a menu bar.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Well, I was just about to try and delete this thread because I did manage to add a toolBar to a dialog, with code.
Qt Code:
To copy to clipboard, switch view to plain text mode
but it's not right, because QDialog has not a place for a menu bar, but QMainWindow has. maybe it's better yo use QToolButton with menus.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
No, I've written apps like this with other libraries, it works fine.
QMainWindow is still just a dialog but with some extra functions built on top.
It threw me when I didn't see how to do this with the designer. I guess they figured most people would not want a menu bar on a dialog.
A camel can go 14 days without drink,
I can't!!!
Bookmarks