how can i compile and run kde-programs with the qt-librarie

Mr. Data mr.data at nikocity.de
Sun Jan 30 10:10:12 GMT 2000


On Son, 30 Jan 2000 you wrote:
> > > int main(int argc, char **argv) {
> > >     QApplication App(argc, argv);
> > >     QPushButton Button(0, "hello world");
> 
> Switch the 0, and the "hello world" around. Don't know why, but it works.
> 
Hi,
let me quote the Qt documentation:
---
QPushButton::QPushButton ( QWidget * parent=0, const char * name=0 )

Constructs a push button with no text. 
---
"name" and "text" are different things. If you want to construct a button with
a text, use:
---
QPushButton::QPushButton ( const char * text, QWidget * parent=0, const char * name=0 )

Constructs a push button with a text. 
---
Bye M.D.




More information about the KDevelop mailing list