List Info

Thread: QT4 programming setup




QT4 programming setup
country flaguser name
United States
2007-07-07 23:59:09
Hello,

I have qt3 and qt4 installed (?):

x11-libs/qt
Installed versions:  3.3.8-r2  4.2.3-r1

So I picked up what looks like an interesting book
on C++ and QT4 part of the Bruce Perens Open Source series.

Looking at the brief installation guide it tells you to
check
your QTDIR setting, so I use 'env | grep QTDIR' and get:

QTDIR=/usr/qt/3

When I go to /usr/qt I do not even see a dir for '4'?
So I want to set up QT4 so I can follow along the book.


But if I look at (moc uic assistant and designer) they look
like version 4.2.3:
moc -v
Qt Meta Object Compiler version 59 (Qt 4.2.3)
uic -v
Qt User Interface Compiler version 4.2.3


I did not find any wikis or such to guide one thru setting
up QT4 form programming. Since I use kde as the desktop,
I do not want to hose anything on the system.

Suggestions for setting up QT4 to write some code, without
hosing the system, are welcome.....


James

-- 
gentoo-usergentoo.org mailing list


Re: QT4 programming setup
user name
2007-07-08 00:24:25
On 7/8/07, James <wirelesstampabay.rr.com> wrote:
> Hello,
>
> I have qt3 and qt4 installed (?):
>
> x11-libs/qt
> Installed versions:  3.3.8-r2  4.2.3-r1
>
> So I picked up what looks like an interesting book
> on C++ and QT4 part of the Bruce Perens Open Source
series.
>
> Looking at the brief installation guide it tells you to
check
> your QTDIR setting, so I use 'env | grep QTDIR' and
get:
>
> QTDIR=/usr/qt/3
>
> When I go to /usr/qt I do not even see a dir for '4'?
> So I want to set up QT4 so I can follow along the
book.
>
>
> But if I look at (moc uic assistant and designer) they
look
> like version 4.2.3:
> moc -v
> Qt Meta Object Compiler version 59 (Qt 4.2.3)
> uic -v
> Qt User Interface Compiler version 4.2.3
>
>
> I did not find any wikis or such to guide one thru
setting
> up QT4 form programming. Since I use kde as the
desktop,
> I do not want to hose anything on the system.
>
> Suggestions for setting up QT4 to write some code,
without
> hosing the system, are welcome.....
>
>
> James
>
> --
> gentoo-usergentoo.org mailing list
>
>


qt4 is in a different structure to qt3,

/usr/include/qt4/
instead of /usr/qt/3/include

/usr/bin/moc
instead of /usr/qt3/moc

/usr/share/qt4/
instead of /usr/qt/3/ ....

using eix ( app-portage/eix ):
  eix ^qt$

[I] x11-libs/qt
     Available versions:
        (3)     3.3.4-r8 [[3.3.8-r2]]
        (4)     4.2.3-r1 [[(~)4.3.0]] **9999[1]
**20070423[1]

using qlist (app-portage/portage-utils)

qlist =x11-libs/qt-3.3.8-r2
qlist =x11-libs/qt-4.3.0

That should tell you what your looking for.


for the actual programming part, i do believe its all set up
for you.

qmake -project
qmake
make

thats all i had to do to build my first QT app 

-- 
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12,
13].each{|x|
print "enNOSPicAMreil kdrtfgma.com"[(2*x)..(2*x+1)]}'
-- 
gentoo-usergentoo.org mailing list


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )