'Start Menu' widget?
-
If u want menu which pops up another menus. why don't u use QMainWindow in spite of QWidget.
-
Anyway. I hope Dropbox ok for you:
"Example":https://www.dropbox.com/s/by5yi4d8o9lzpxs/MenuExperiment.7zit is very simple example. Take a look and let me know if it is not what you want.
-
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 .
-
qxoz,
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>'
Q_STATIC_ASSERT_X(QtPrivate::HasQ_OBJECT_Macro<typename SignalType::Object>::Value,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^not sure what to do to fix this.
-
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/
$ make
$ 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
-
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.