How to add toolbar and menubar in QDialog?
-
Firstly, I should say that i am completely new with qt so if any one wants to help me my request is to show full code where should i implement that and how to write it properly.
I want to make a application that needs toolbar and menubar. so can i add toolbar and menubar in Qdialog by writing any code? -
Firstly, I should say that i am completely new with qt so if any one wants to help me my request is to show full code where should i implement that and how to write it properly.
I want to make a application that needs toolbar and menubar. so can i add toolbar and menubar in Qdialog by writing any code?@Mahin-Abid
There is no evidence that you really want these on aQDialog, when from your other post you have them on yourQMainWindow. Try not to run before you can walk! Why would you not want these on yourQMainWindowonly, why would you want them on aQDialog? -
Just add what @JonB said, MenuBar & toolBar comes with QMainWindow class. They don't come with Dialog class. Better use the QMainWindow.
-
Just add what @JonB said, MenuBar & toolBar comes with QMainWindow class. They don't come with Dialog class. Better use the QMainWindow.
@dheerendra
The OP is asking about this in his other thread, https://forum.qt.io/topic/110163/i-can-t-change-pages-from-a-qwidget-to-a-qmainwindow
I think he is aware now that is a better place to have this discussion.