首页| 论坛| 消息

标题:qt编译
作者:paullove1025
日期:2009-05-26 16:03
内容:

我在编译下列程序时,出现提示找不到qmultilineedit.h头文件,该怎么弄啊?
非常感谢!
#include "call.h"
#include
#include
#include
#include
#include
#include
#include
#include
/*
*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( QColor ..


#1 [jackyzhang 05-27 10:42]
看include目录下是否有这个文件
#2 [jxq19881013 05-27 11:13]
你用的是哪个版本?
#3 [jackyzhang 05-27 11:41]
4.x
#4 [bhwbj 05-27 17:13]
提示找不到那就手动找呗,find /-name qmultilineedit.h
找到了就在Makefile里加上 -I/xxxx

回复 发表
主题 版块