65.9K
CodeProject is changing. Read more.
Home

Development of applications of Cross-Platform with Qt and MSVC++ - Part 2

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.08/5 (7 votes)

Jun 4, 2005

CPOL

3 min read

viewsIcon

41444

Qt Designer and Compilers

Sample Image - Qt002.jpg

Introduction

In the last article I talked about the first steps of the creation of a program example using Qt and MSVC++. Now I will supply some details on this library and the resources that it offers to the planner of softwares.

Qt Compiler Notes

See the compilers' options and their architectures below:

Visual C++ Windows 95/98/Me/NT/2000/XP
Compaq C++ Tru64
GCC most platforms (Linux. FreeBSD, etc)
HP aC++ HP-UX
Intel C++ Linux
KAI C++ Linux
MIPSpro IRIX
Forte Developer / Sun Studio Solaris
IBM xlC AIX

Platform Notes

Now, we will look at the options of platforms. See the platforms and their respective support libraries below. In case the reader wants details on a specific platform, I recommend to seek the manufacturer's site to obtain more details.

X11

AIX - 4.1 or later
BSD/OS - 2.0 or later
DG/UX
Embedded
FreeBSD - 2.1 or later
HP-UX - 10.20 or later
IRIX - 6.x
Linux
NetBSD
OpenBSD
OpenServer
QNX
Reliant UNIX
Solaris - 2.5.1 or later
Tru64 UNIX - 4.0 or later
UnixWare

Windows

Windows 95
Windows 98 and Me
Windows NT (4.0 or later), 2000, and XP
XLib on Windows

Mac OS X

Mac OS X (all versions)

Using Visual C++ 6.0

· no longer support version 5 and earlier.

· Fix all bugs installing Service Pack 5.

· Use a tiny path to QTDIR (C:\QT\3.c)

· VC++ 6.0 Linker doesn’t support filenames with spaces (C:\Program Files\Qt\3.x), try use QTDIR=C:\QT\3.X).

· Be carrefull with alignment flags like /Zp2

· The Qt 3.2.x can use .NET and VC++ 6.0.

· Forget “Visual C++ Toolkit 2003”, it don’t will work, sorry.

If you will develop tools or programs of public domain, then you don't need to pay for the commercial license of QT, it can use the version no commercial "qt-win-noncommercial-msvc-3.2.1.exe".

Be careful, because these programs should be distributed with the sources codes. And that you do is useful for a lot of others people, order copy of the code for the manufacturer of Qt.

See the list of the operating systems and the name of the file of distribution of the no-commercial editions.

Microsoft Windows => qt-win-noncommercial-msvc-3.2.1.exe

MacOS => qt-mac-free-3.2.1.tar.gz

Linux => qt-x11-free-3.2.1.tar.gz

There's a old version of Qt 2.30 . It's work fine! ;-)

You can get a trial version of QT. You can find good books about QT programming on internet.

· C++ GUI Programming with Qt 3 (Jasmin Blanchette and Mark Summerfield)

· Qt. Professional programming with C++ , Russian (Max Schlee)

· Qt/KDE 2 Programming (MingChe Chuang)

· Programming With Qt (Matthias Kalle Dalheimer)

· Qt Programming in 24 hours (Daniel Solin)

· Qt Programming for Linux and Windows 2000 (Patrick Ward Prentice)

We did ties now it went to talk about Qt and their functionalities and restrictions. Now, I will make an abbreviation introduction about IDE of Qt. It will allow you to create screens and codify their programs easily. The qmake will generate the intermediate files, necessary to transform the interface projects in code C++. The interface files has extension *.UI.

This is the template dialog. Look the samples, But you can create their models.

Template dialog

I will talk more about Qt Designer in the next article.

Any doubt or text no readable and only to scream!