Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
'Start Menu' widget?
Does Qt have a 'start menu' type widget? What I mean by that is a widget that pops up when something (a button) is triggered, and disappears when clicked off. Something like Unity Dash or Win Start Menu.
Hi. Maybe i didn't understand you correctly but why you need special widget for that? You can made such window yourself and very easy.
joongtang last edited by
How to make such window? Show me the example, pls.
Can you describe what should this window do, except pops up frameless window when something (a button) is triggered, and disappears when clicked off?
I repeat probably i didn't understand complexity of issue.
What do you expect from this window?
ankursaxena last edited by
If u want menu which pops up another menus. why don't u use QMainWindow in spite of QWidget.
I guess what I want is a more 'complex' menu. A menu that can hold widgets, etc. and has more functionality then a QMenu.
Where i can put minimal example for you?
Anyway. I hope Dropbox ok for you:
it is very simple example. Take a look and let me know if it is not what you want.
Unfortunately I can't open a .7z file on my computer (OS X)
Here is zip: "Example":https://www.dropbox.com/s/bsxyiz3nhenygev/MenuExperiment.zip
also you can find 7z archivers for OS X "here":http://www.7-zip.org/download.html .
reading through the code it looks like what I'm looking for, however I can't compile it. It gives me this error:
/Users/XXXX/Qt5.2.0/5.2.0/clang_64/lib/QtCore.framework/Headers/qobject.h:222: error: no member named 'Value' in 'QtPrivate::HasQ_OBJECT_Macro<FormMenu>'
not sure what to do to fix this.
andreyc last edited by
qxoz, thank you for the example, I was looking for something like this.
nicky j, I'm able to build it using Qt 5.3.0 and Qt5.2.1 on Linux and MacOSX
The error message looks like there is some wrong in an environment.
Did you build it using command line or QtCreator?
$ cd tmp
$ unzip ~/Downloads/MenuExperiment.zip
$ mkdir build-menu-5.2.1
$ cd build-menu-5.2.1/
$ ~/Qt5.2.1/5.2.1/clang_64/bin/qmake ../MenuExperiment/
$ ls -l ./MenuExperiment.app/Contents/MacOS/MenuExperiment
-rwxr-xr-x 1 user staff 120324 Jun 18 23:46 ./MenuExperiment.app/Contents/MacOS/MenuExperiment
Could you install and try 5.3
I built it in Qt creator. I just hit the configure button and opened it up
andreyc last edited by
No errors in QtCreator either. Qt 5.2.1 Linux.
Try to create a simple Widget project and build it in QtCreator.
Thats what I did
[quote author="andreyc" date="1403150141"]... I was looking for something like this.[/quote]
You're welcome. I am always glad to help.
[quote author="nicky j" date="1403158757"]Thats what I did[/quote]
You mean, you can't build any project?
Sorry, I haven't been clear. I can build my own projects, but I don't know how to run someone else's project after I download it. Qxoz, I unzipped you program with Keka. Then I opened Qt Creator, hit 'Open Project', navigated to the MenuExperiment folder, and double clicked the .pro file. The Qt Creator had me click through a short config wizard thing. Thats all I did, and I can't compile it.
Could you or someone give me the steps for downloading and compiling someone else's Qt project? I'm sure I'm doing something wrong. Thank you for all your help, your project seems to be what I'm looking for.
Strange, seems everything is correct, maybe this issue somehow related to OS. But there are another way to make it work. Create simple app which builds ok, then move my code to it(part by part). I think it should work.
How would I copy the form file?
Just copy [form].ui, [form].cpp, [form].h files or recreate form and copy code lines.