我在编译下列程序时,出现提示找不到qmultilineedit.h头文件,该怎么弄啊?
非常感谢!
#include "call.h"
#include <qlabel.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qtoolbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a call which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
call::call( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "call" );
resize( 640, 420 );
setMinimumSize( QSize( 640, 420 ) );
setMaximumSize( QSize( 640, 420 ) );
setCaption( tr( "Call" ) );
Img_Bak = new QLabel( this, "Img_Bak" );
Img_Bak->setGeometry( QRect( 0, 0, 640, 420 ) );
Img_Bak->setScaledContents( TRUE );
Txt_State = new QMultiLineEdit( this, "Txt_State" );
Txt_State->setGeometry( QRect( 160, 310, 240, 80 ) );
QPalette pal;
QColorGroup cg;
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
Txt_State->setPalette( pal );
Txt_State->setFrameShape( QMultiLineEdit::NoFrame );
Txt_State->setReadOnly( TRUE );
Txt_Num = new QLineEdit( this, "Txt_Num" );
Txt_Num->setEnabled( FALSE );
Txt_Num->setGeometry( QRect( 220, 56, 160, 19 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Background, QColor( 247, 222, 222) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, black );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
Txt_Num->setPalette( pal );
Txt_Num->setFrame( FALSE );
Btn_Message = new QToolButton( this, "Btn_Message" );
Btn_Message->setGeometry( QRect( 20, 290, 110, 100 ) );
Btn_Message->setText( tr( "" ) );
Btn_Message->setUsesBigPixmap( TRUE );
Btn_Dial = new QToolButton( this, "Btn_Dial" );
Btn_Dial->setGeometry( QRect( 30, 200, 40, 40 ) );
Btn_Dial->setText( tr( "" ) );
Btn_Dial->setUsesBigPixmap( TRUE );
Btn_UnDial = new QToolButton( this, "Btn_UnDial" );
Btn_UnDial->setGeometry( QRect( 130, 196, 43, 42 ) );
Btn_UnDial->setText( tr( "" ) );
Btn_UnDial->setUsesBigPixmap( TRUE );
Btn_exit = new QToolButton( this, "Btn_exit" );
Btn_exit->setGeometry( QRect( 64, 75, 53, 31 ) );
Btn_exit->setText( tr( "" ) );
Btn_exit->setUsesBigPixmap( TRUE );
Btn_c = new QToolButton( this, "Btn_c" );
Btn_c->setGeometry( QRect( 224, 236, 23, 30 ) );
Btn_c->setText( tr( "" ) );
Btn_c->setUsesBigPixmap( FALSE );
Btn_0 = new QToolButton( this, "Btn_0" );
Btn_0->setGeometry( QRect( 284, 235, 23, 30 ) );
Btn_0->setText( tr( "" ) );
Btn_0->setUsesBigPixmap( FALSE );
Btn_sharp = new QToolButton( this, "Btn_sharp" );
Btn_sharp->setGeometry( QRect( 346, 236, 23, 30 ) );
Btn_sharp->setText( tr( "" ) );
Btn_sharp->setUsesBigPixmap( FALSE );
Btn_9 = new QToolButton( this, "Btn_9" );
Btn_9->setGeometry( QRect( 346, 188, 23, 30 ) );
Btn_9->setText( tr( "" ) );
Btn_9->setUsesBigPixmap( FALSE );
Btn_8 = new QToolButton( this, "Btn_8" );
Btn_8->setGeometry( QRect( 285, 187, 23, 30 ) );
Btn_8->setText( tr( "" ) );
Btn_8->setUsesBigPixmap( FALSE );
Btn_7 = new QToolButton( this, "Btn_7" );
Btn_7->setGeometry( QRect( 225, 186, 23, 30 ) );
Btn_7->setText( tr( "" ) );
Btn_7->setUsesBigPixmap( FALSE );
Btn_4 = new QToolButton( this, "Btn_4" );
Btn_4->setGeometry( QRect( 225, 140, 23, 30 ) );
Btn_4->setText( tr( "" ) );
Btn_4->setUsesBigPixmap( FALSE );
Btn_5 = new QToolButton( this, "Btn_5" );
Btn_5->setGeometry( QRect( 284, 140, 23, 30 ) );
Btn_5->setText( tr( "" ) );
Btn_5->setUsesBigPixmap( FALSE );
Btn_6 = new QToolButton( this, "Btn_6" );
Btn_6->setGeometry( QRect( 348, 140, 23, 30 ) );
Btn_6->setText( tr( "" ) );
Btn_6->setUsesBigPixmap( FALSE );
Btn_1 = new QToolButton( this, "Btn_1" );
Btn_1->setGeometry( QRect( 226, 94, 23, 30 ) );
Btn_1->setText( tr( "" ) );
Btn_1->setUsesBigPixmap( FALSE );
Btn_2 = new QToolButton( this, "Btn_2" );
Btn_2->setGeometry( QRect( 285, 94, 23, 30 ) );
Btn_2->setText( tr( "" ) );
Btn_2->setUsesBigPixmap( FALSE );
Btn_3 = new QToolButton( this, "Btn_3" );
Btn_3->setGeometry( QRect( 347, 94, 23, 30 ) );
Btn_3->setText( tr( "" ) );
Btn_3->setUsesBigPixmap( FALSE );
}
/*
* Destroys the object and frees any allocated resources
*/
call::~call()
{
// no need to delete child widgets, Qt does it all for us
}