[Interest] My First approach with QT 5.1 on MacOS : very disappointing

Vincent R. forumer at smartmobili.com
Fri Aug 30 16:03:49 CEST 2013


it's been a long time since I tried QT and I read some very interesting 
articles about new version
of QT, QTQuick 2.x, desktop controls, better QTCreator, ...
So I have downloaded the latest version of QT (5.1) on MacOS mountain 
Lion and I tried to find an good tutorial.
I found this one :

I have downloaded the source code, started Creator and clicked on the 
Debug button but of course it doesn't
work and I get the following errors :

erreur : 'initializer_list' file not found
#include <initializer_list>

Ok So I found the following thread on SO :

So I have edited the file qmlc++.pro to add -stdlib=libc+ and CONFIG 
+=c++11 (as shown below)

lessThan(QT_MAJOR_VERSION, 5): error(This project requires Qt 5 or 

# Needed by g++ for C++11 support. Adjust as needed for other 
QMAKE_CXXFLAGS += -std=c++0x -stdlib=libc+
CONFIG +=c++11

TARGET = qmlc++
QT += qml quick widgets
HEADERS += KeyGenerator.h
SOURCES += main.cpp KeyGenerator.cpp
OTHER_FILES += main.qml

So now everything compiles fine, I only have the following warnings:
directory not found for option 
directory not found for option 
directory not found for option 

Then when I try to run the application it cannot find the main qml file 

Démarrage de 
debugging is enabled. Only use this in a safe environment.
File not found

a quitté avec le code 255

So I finally gave up for now and I tried to create a new hello world 
application, then I wanted to see the option to import an external 
into the project so I right-clicked on the project -> Add library... 
then a dialog appeared but in the mean time I changed my mind and I 
wanted to do something else before inserting a libray BUT WHERE IS THE 
CANCEL BUTTON ? I have to launch process explorer to quit this dialog.

UPDATE : I found that to quit the import lib dialog I can press Esc key 
but to me this is ugly, it shouldn't be difficult to rename the "Go 
back" button into Cancel when you are on the first state of the 

I am a bit disappointed.

I found this problem withing 10 minutes so now I am a bit afraid to 
keep on testing.

More information about the Interest mailing list