[Kde-games-devel] Porting from QT to KDE
Albert Astals Cid
kde-games-devel@mail.kde.org
Wed, 5 Feb 2003 18:36:32 +0100
I have programed a little tic-tac-toe game in QT and i'm trying to port i=
t to
KDE.
First i've tried to change the use of QMessageBox to KMessageBox, a simpl=
e
change it seems, but i am having problems.
My line in QMessageBox is
QMessageBox::information(this,"","Red player wins!!!",QMessageBox::Ok);
and i have changed it to
KMessageBox::information(this,"","Red player wins!!!");
and compiled with
g++ -L /usr/lib/qt3/lib -o q3er main.o casella.o tauler.o dintre_casella.=
o
-lqt-mt -lkdeui
And it compiled fine, but when i run the game it segfaults when reaches t=
he
KMessageBox line.
Any tip?
Albert Astals Cid
P.S: Sorry to the administrator, i always post fisrt from the mail accoun=
t
that isn't subscribed to the list.