its nothing buddy,
here the first parameter puts a small image (pointer to the image)beside the text.
second is the text of the popup, and last is the index no.
its nothing buddy,
here the first parameter puts a small image (pointer to the image)beside the text.
second is the text of the popup, and last is the index no.
I have a simple question
What does the following code mean
What is the base class of CMainPage?Qt Code:
:[B]CMenuPage[/B](pParent, member, nMemStatus, nBattaryStatus, strTitle)To copy to clipboard, switch view to plain text mode
And one more thing, please use for your "code snippet". It makes the code more readable.
Thanks
But what does it do internally? Are these your own classes or are they a part of some framework?
Hi Dear,
I have used Qpushbuton class and created a pushbutton.
I have used the setpopup functionality of pushbutton class so when i click on this push button a popup menu of options will appear.
This popup menu is like our file menu only. Now when we click on file button a popup menu will open and when we select the open from the list a dialog box appears and popup menu gets hide am i right? Here in my case on clicking the button a popup menu opens perfectly and choosing options among popup menu a dialog box appears this thing works fine but the popup menu remains open in background. I would like to know how to hide this popup menu. .
All the above classes are derived from class QWidget.
We have used our own hardware platform to run this firmware code.
This will make more clear for your understanding of my problem.
Waiting for your reply.
For me your constructor seems to be wrong, if your base class is QWidget then I think your constructor should be something like this
Try this and then let us know the status....Qt Code:
:QWIdget(pParent, member) { //your code }To copy to clipboard, switch view to plain text mode
Thanks
What is the base class of the popup menu? If it's QPopupMenu and you trigger it with exec(), it should hide itself when you click outside the menu or choose one of its actions.
thanks for ur help dear,
but here that functionality just u told about exec() is already implemented.
after opening the menu if I click else where then it automatically gets hidden.
Is there any other way????
Hi
Thanks for your quick reply.
Qpopupmenu is the class of popup menu, but we are using the popup to trigger the popup menu is there any function while using popup to hide the menubar.
I must admit I'm having trouble understanding what the problem is. Could you post a screenshot of what happens?
Bookmarks