LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2004, 10:04 AM   #1
CorDharel
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Cant use qvbox.h? (QT Programming)


I am trying to code an app in linux with QT. But when I create a QApplication and use then a QVBox it failes!

this is the code:

Code:
#include <qapplication.h>
#include <qpushbutton.h>
#include <qfont.h>
#inlcude <qvbox.h>

int main(int argc, char **argv)
{
    QApplication a( argc, argv );

    QVBox box;
    box.resize( 200,120 );
        

    QPushButton quit("Quit", &box);
    quit.setFont( QFont( "Times", 18, QFont::Bold ) );

    QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );

    a.setMainWidget( &box );
    box.show();
    return a.exec();
}
And the error message says: "QVBox undeclared". The file qvbox.h exists in the include folder! What am I doing wrong?

Thanks for any help!

Last edited by CorDharel; 10-27-2004 at 10:13 AM.
 
Old 10-27-2004, 10:14 AM   #2
CorDharel
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Oh damn I misspelled "include". Why does my editor not show this to me?

Sorry for disturbing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration