QT or KDE ?What's my problem?I'm newbie

Mohsen Pahlevanzadeh mohsen at pahlevanzadeh.org
Thu Jan 20 21:58:33 GMT 2005


Dears,following is my program:
#include <ktmainwindow.h>
#include <qstring.h>
#include <kapp.h>
int main(int argc,char **argv)
{
 KApplication myapp(argc,argv);
  KTMainWindow x= KTMainWindow();
 x.setGeometry(100,100,200,100);
 x.show();

 return myapp.exec();
}//end of program

But i recieve following error:
mohsen at darkstar:~/rozita$ ls
Makefile  disk2.img  ktmainwindow.h  main.cpp  main.cpp~  main.o  x*
mohsen at darkstar:~/rozita$ make
g++ -c -I/opt/kde/include -I/usr/local/qt/include main.cpp
/usr/local/qt/include/qwidget.h: In copy constructor `
   KTMainWindow::KTMainWindow(const KTMainWindow&)':
/usr/local/qt/include/qwidget.h:696: error: `QWidget::QWidget(const
QWidget&)'
   is private
main.cpp:17: error: within this context
make: *** [main.o] Error 1
mohsen at darkstar:~/rozita$

What's my problem?
Yours,Mohsen.
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list