Showing posts with label newbie. Show all posts
Showing posts with label newbie. Show all posts

Thursday, January 14, 2010

Qt 4.5.3 for Mac uninstall required before installing Qt 4.6

Here's something pretty subtle that I hadn't picked up. In the install notes, it tells how to perform the uninstall:

"You can later run the uninstall-qt.py script to uninstall the binary package."

sudo /Developer/Tools/uninstall-qt.py

I had to do this prior to installing Qt 4.6 over Qt 5.3 because Qt decided to store the app into /Developer/Applications/Qt/QtCreator without (of course) removing the old one.

In Windows, they install it directly into the C: directory, into a subdir with the version number. I'm wondering how (if?) they'll support multiple active versions on the Mac.

Wednesday, January 13, 2010

QTreeView (QAbstractItemView) and PageUp/PageDown

Just a note on QTreeView and PageUp/PageDown. I'm developing an app designed for fingers on a big screen, and need a button for PageUp/PageDown rather than using the scrollbar.

QTreeView.autoScroll must be set to "true" to enable PageUp/PageDown key commands to move the list.

Monday, January 11, 2010

Build Error: C:\Qt\2009.05\mingw\bin\mingw32-make.exe: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41f96e)

(I presume your addresses may vary, and I was building the "textobject" sample from the Getting Started screen.)
More text from the build error:

Running build steps for project textobject...

Starting: c:/qt/2009.05/qt/bin/qmake.exe C:/Qt/2009.05/qt/examples/richtext/textobject/textobject.pro -spec win32-g++ -r

Exited with code 0.

Starting: C:/Qt/2009.05/mingw/bin/mingw32-make.exe -w

mingw32-make: Entering directory `C:/Qt/2009.05/qt/examples/richtext/textobject'

C:/Qt/2009.05/mingw/bin/mingw32-make -f Makefile.Debug all

C:\Qt\2009.05\mingw\bin\mingw32-make.exe: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41f96e)

Exited with code 255.

Error while building project textobject

When executing build step 'Make'


This happens because the installer for the MinGW Windows release 2009.05 doesn't set the PATH environment variable. Qt cannot find the MingGW tools.
 
Here's a bug: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-517
 
right-click My Computer->Properties->Advanced->Environment Variables
in the upper box, if Path doesn't exist, add Path and set it to:
c:\qt\2009.05\mingw\bin;C:\Qt\2009.05\qt\bin

Or, if Path exists, double-click on it, append a semicolon, then append that string. Also, note your installation. If you install Qt after then next release, it may install in the "2010.01" directory or something similar.

Build->Rebuild All now gives me a green bar under "Build"--Success.

Researching: best practices for sequential pages

Trying QWizard
Trying the State Machine Framework
For my applications, perhaps Model-View Programming