Where do I set QT_CONFIG = menu ?
-
class QMdiSubWindow header has this option
#if QT_CONFIG(menu)
void setSystemMenu(QMenu *systemMenu);
QMenu *systemMenu() const;
#endifIt enables usage of QMenu etc.
I am unable to find where to set
QT_CONFIG = menu'Add of QT_CONFIG = menu to .pro file has no desired effect - still cannot code menu functions.
-
This is not something you can turn on or off in your project. This macro is for querying whether that feature was enabled or not during compilation of Qt itself i.e. code inside that ifdef will be enabled if Qt was build with support for that particular feature.
It is specified by using the
-featureor-no-featureoption of the configure tool when compiling Qt.Btw. I doubt that any widely distributed Qt build would have support for menus disabled. Are you sure this is the issue you're having?
-
class QMdiSubWindow header has this option
#if QT_CONFIG(menu)
void setSystemMenu(QMenu *systemMenu);
QMenu *systemMenu() const;
#endifIt enables usage of QMenu etc.
I am unable to find where to set
QT_CONFIG = menu'Add of QT_CONFIG = menu to .pro file has no desired effect - still cannot code menu functions.
@AnneRanch said in Where do I set QT_CONFIG = menu ?:
still cannot code menu functions.
Show a line of code you attempted together with the error message.
-
This is not something you can turn on or off in your project. This macro is for querying whether that feature was enabled or not during compilation of Qt itself i.e. code inside that ifdef will be enabled if Qt was build with support for that particular feature.
It is specified by using the
-featureor-no-featureoption of the configure tool when compiling Qt.Btw. I doubt that any widely distributed Qt build would have support for menus disabled. Are you sure this is the issue you're having?
Configure should be run from the main Qt source directory
Thanks, now I need to figure out with "source directory" I am using .
I have downloaded way too many....Sorry , I missed the last lione.
No, I am not sore .
I was trying to reuse MDI example and because my project is based on MDI example it did not go well.
SO I decided to build MDI from scratch and I have "add subwindow " sort of working.
Now I am trying to add "menu" and not sure I am doing it right.
( I am not sure I have ":QMenu" module implemented correctly - for the entire project ..")I will rake a look a the MDI example an see hove "they " did it.
It is very nice example , but has absolutely no comments to see what is happening... I think the developers deliberately remove comments when an example is made public...
-
@AnneRanch said in Where do I set QT_CONFIG = menu ?:
I think the developers deliberately remove comments when an example is made public...
I don't think that's true, but some examples do have more comments than others. I'm guessing the MDI example is pretty old as the MDI UI interface doesn't seem very common anymore.
-
My coding philosophy is to keep the screen void of unnecessary stuff - which seem to be just opposite what coders do.
I like TAB and MDI just because of that.
The reason I commented on lack of comment is because the example is build from several QT classes and it is very compact.
I am try to replicate MDI using QDesigner and I am having hard time putting it nicely together.