当前位置:文档之家› QtableWidget的用法总结

QtableWidget的用法总结

QtableWidget的用法总结
QtableWidget的用法总结

N z在使用Qt不多的日子里,已经两次用到了QTableWidget这个控件,也慢慢的习惯和喜欢上了它。再使用QTableWidget的时候,已不像刚开始使用时的迷茫。嗯嗯。现在就来总结总结我与QTableWidget相识的历程......(*^__^*) 嘻嘻……

使用时也查过不少资料,在此感谢前辈们的用心总结与分享!

▍★∴

....▍▍....█▍☆★∵ ..../

◥█▅▅██▅▅██▅▅▅▅▅███◤

.◥███████████████◤

~~~~◥█████████████◤~~~~

1.QTableWidget不能在mainwindow中随主窗口的大小变化?

解决:在表格外部添加布局。

代码:tableWidget = new QTableWidget;

tableWidget ->setObjectName(QString::fromUtf8("tableWidget"));

QVBoxLayout *verticalLayout;

verticalLayout->addWidget(tableWidget );

2.将表格变为禁止编辑:

tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);

(参数含义:QAbstractItemView.NoEditTriggers--不能对表格内容进行修改

QAbstractItemView.CurrentChanged--任何时候都能对单元格修改

QAbstractItemView.DoubleClicked--双击单元格

QAbstractItemView.SelectedClicked--单击已选中的内容

QAbstractItemView.EditKeyPressed--

QAbstractItemView.AnyKeyPressed--按下任意键就能修改

QAbstractItemView.AllEditTriggers--以上条件全包括)

3.设置表格为整行选择

tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); //整行选中的方式

(参数含义:AbstractItemView.SelectItems--选中单个单元格

QAbstractItemView.SelectRows--选中一行

QAbstractItemView.SelectColumns--选中一列)

4.单个选中和多个选中的设置:

tableWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); //设置为可以选中多个目标

(参数含义:QAbstractItemView.NoSelection--不能选择

QAbstractItemView.SingleSelection--选中单个目标

QAbstractItemView.MultiSelection--选中多个目标

QAbstractItemView.ExtendedSelection/QAbstractItemView.ContiguousSelection的区别不明显,主要功能是正常情况下是单选,但按下Ctrl或Shift键后,可以多选)

5.表格表头的显示与隐藏

对于水平或垂直方法的表头,可以用以下方式进行隐藏/显示的设置:

tableWidget->verticalHeader()->setVisible(false); //隐藏列表头

tableWidget->horizontalHeader()->setVisible(false); //隐藏行表头

注意:需要 #include

6.对表头文字的字体、颜色进行设置

QTableWidgetItem *columnHeaderItem0 = tableWidget->horizontalHeaderItem(0); //获得水平方向表头的Item对象

columnHeaderItem0->setFont(QFont("Helvetica")); //设置字体

columnHeaderItem0->setBackgroundColor(QColor(0,60,10)); //设置单元格背景颜色

columnHeaderItem0->setTextColor(QColor(200,111,30)); //设置文字颜色

注意:需要 #include

7.在单元格里加入控件:

QComboBox *comBox = new QComboBox();

comBox->addItem("Y");

comBox->addItem("N");

tableWidget->setCellWidget(0,2,comBox);

8.单元格中添加图片:

tableWidget->setItem(row, 0, new QTableWidgetItem(QIcon(":/new/images/kingdemo.ic o"),tr("")));

9设置单元格字体颜色、背景颜色和字体字符:

QTableWidgetItem *item = new QTableWidgetItem("Apple");

item->setBackgroundColor(QColor(0,60,10));

item->setTextColor(QColor(200,111,100));

item->setFont(QFont("Helvetica"));

tableWidget->setItem(0,3,item);

另:如果需要对所有的单元格都使用这种字体,则可以使

用 tableWidget->setFont(QFont("Helvetica"));

10.设置单元格内文字的对齐方式

水平对齐方式有:

Constant Value Description

Qt.AlignLeft 0x0001 Aligns with the left edge.

Qt.AlignRight 0x0002 Aligns with the right edge.

Qt.AlignHCenter 0x0004 Centers horizontally in the available space.

Qt.AlignJustify 0x0008 Justifies the text in the available space.

垂直对齐方式:

Constant Value Description

Qt.AlignTop 0x0020 Aligns with the top.

Qt.AlignBottom 0x0040 Aligns with the bottom.

Qt.AlignVCenter 0x0080 Centers vertically in the available space.

如果两种都要设置,只要用 Qt.AlignHCenter | Qt.AlignVCenter 的方式即可

11.合并单元格:

tableWidget->setSpan(0, 0, 3, 1) # 其参数为:要改变单元格的1行数、2列数,要合并的3行数、4列数

12.设置单元格的大小

首先,可以指定某个行或者列的大小

tableWidget->setColumnWidth(3,200);

tableWidget->setRowHeight(3,60);

还可以将行和列的大小设为与内容相匹配

tableWidget->resizeColumnsToContents();

tableWidget->resizeRowsToContents();

13.获得单击单元格的内容

通过实现 itemClicked (QTableWidgetItem *) 信号的槽函数,就可以获得鼠标单击到的单元格指针,进而获得其中的文字信息

connect(tableWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(getIt em(QTreeWidgetItem*,int)));

//将itemClicked信号与函数getItem绑定

14.QTableWidget要调整表格行宽主要涉及以下函数

tableWidget->horizontalHeader()->setResizeMode(QHeaderView::Stretch);//使列完全填充并平分

tableWidget->verticalHeader()->setResizeMode(QHeaderView::Stretch);//行自适应宽度

tableWidget->resizeColumnsToContents(); //根据内容调整列宽

tableWidget->resizeColumnToContents(int col);//根据内容自动调整给定列宽

tableWidget->horizontalHeader()->setResizeMode//把给定列设置为给定模式主要模式有Stretch和Fixed

15.添加表头内容:

方法一:

QStringList header;

header<<""<

方法二:

tableWidget->setHorizontalHeaderLabels(QStringList() << tr("1")<

16.清除:

tableWidget->clear();//清除所有可见数据(包括表头),行还在

tableWidget->clearContents();//只清除表中数据,不清除表头内容

tableWidget->setRowCount(0);//连行也清除掉

15.一些零碎的知识点代码:

int row = tableWidget->rowCount();//获取表格中当前总行数

tableWidget->setRowCount(row+1);//添加一行

tableWidget->removeRow(row);//清除已有的行列

Int row1 = tableWidget->currentItem()->row();//当前选中行

bool focus = tableWidget->isItemSelected(tableWidget->currentItem());//判断是否选中一行

QString proName = tableWidget->item(row, col)->text();//获取某一格内容

setShowGrid(true);//显示表格线

verticalHeader()->setVisible(false);//隐藏左边垂直

QHeaderView *headerView = horizontalHeader();

headerView->setMovable(false);//去除表头的移动

headerView->resizeSection(0,284);//设置第一列宽

headerView->resizeSection(1,127);//设置第二列宽

headerView->setResizeMode(QHeaderView::Fixed);//列表不能移动

headerView->setClickable(false);//不响应鼠标单击

setEditTriggers(QTableWidget::NoEditTriggers);//不能编辑

setSelectionBehavior(QTableWidget::SelectRows);//一次选中一行

setSelectionMode(QAbstractItemView::SingleSelection);//只能单选

/*QScrollBar *scrollBar = horizontalScrollBar();

scrollBar->hide();*/

setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//去掉水平滚动条

setVerticalScrollMode(QAbstractItemView::ScrollPerItem);//垂直滚动条按项移动

setAutoScroll(false);//去掉自动滚动

使行间隔变颜色

QPalette pal;

pal.setColor(QPalette::Base,QColor(255,0,0));

pal.setColor(QPalette::AlternateBase,QColor(0,255,0));

ui->tableWidget->setPalette(pal);

u

i->tableWidget->setAlternatingRowColors(true);

参加OSC应用开发大赛,拿Nexus 4手机活动详情

基本外观设置

FriendTable->setFrameShape(QFrame::NoFrame); //设置边框FriendTable->setHorizontalHeaderLabels(HeadList); 设置表头FriendTable->setSelectionMode(QAbstractItemView::SingleSelection ); 设置选择的模式为单选择

FriendTable->setSelectionBehavior(QAbstractItemView::SelectRows ); 设置选择行为时每次选择一行

FriendTable->setShowGrid(false); 设置不显示格子线

FriendTable->setFont(font); 设置字体

设置表单背景或透明

QPalette pal = musicTable->palette();

pal.setBrush(this->backgroundRole(),QBrush(QPixmap("images/ background.png")) );

musicTable->setPalette( pal );

设置它的背景图片,也可以将QBrush初始化为QColor来设置背景颜色

QPalette pll = musicTable->palette();

pll.setBrush(QPalette::Base,QBrush(QColor(255,255,255,0))); musicTable->setPalette(pll); //和QTextEdit一样,都可以使用样式表QPalette来修改它的背景颜色和背景图片,这里我们把刷子设置为全透明的,就可以是透明的

在QTableWidget列表中添加图片的方法

QTableWidgetItem *cubesHeaderItem = new

QTableWidgetItem(tr("Cubes"));

cubesHeaderItem->setIcon(QIcon(QPixmap("1.png"))); cubesHeaderItem->setTextAlignment(Qt::AlignVCenter);

musicTable->setItem(1,1,cubesHeaderItem); //在第一行第一列中显示图片

*******************表头的属性修改**************** musicTable->horizontalHeader()->resizeSection(0,150); //修改表头第一列的宽度为150

musicTable->horizontalHeader()->setFixedHeight(25); //修改表头合适的高度

musicTable->horizontalHeader()->setStyleSheet("QHeaderView::se ction {background-color:lightblue;color: black;padding-left:

4px;border: 1px solid #6c6c6c;}"); //设置表头字体,颜色,模式

FriendTable->verticalHeader()->setStyleSheet("QHeaderView::sect ion { background-color:skyblue;color: black;padding-left:

4px;border: 1px solid #6c6c6c}"); //设置纵列的边框项的字体颜色模式等

本来想找找QT里有没有现成的API的,结果没有找到,只能自己写了。

实现也好实现,QTableWidgetItem里面有修改背景色的API,直接调用,然后用循环控制隔行换色即可。

实现代码:

void testtt::changeColor(QTableWidget *tablewidget){

for (int i = 0;i < tablewidget->rowCount();i++)

{

if (i % 2 == 0)

{

for (int j = 0;j < tablewidget->columnCount();j++)

{

QTableWidgetItem *item = tablewidget->item(i,j);

if (item)

{

const QColor color = QColor(252,222,156);

item->setBackgroundColor(color);

}

}

}

}

使用

向表中插入一项

QTableWidgetItem *num=new

QTableWidgetItem(QTableWidgetItem::Type);

num->setCheckState(Qt::Unchecked); //加入复选框

num->setIcon(QIcon("images/fetion.png")); //加入ICon

num->setText(InfoList.at(i).name);

num->setFont(font);

num->setTextColor(color);

num->setFlags(num->flags() ^ Qt::ItemIsEditable);

int currentRow=FriendTable->rowCount(); //插入到最后FriendTable->insertRow(currentRow);

FriendTable->setItem(currentRow,0,num); //插入该Item

FriendTable->selectRow(0); 选择第一行

删除某一行列

FriendTable->removeRow(row);

FriendTable->removeColumn (column );

信号

void cellActivated ( int row, int column )

void cellChanged ( int row, int column )

void cellClicked ( int row, int column )

void cellDoubleClicked ( int row, int column )

void cellEntered ( int row, int column )

void cellPressed ( int row, int column )

void currentCellChanged ( int currentRow, int currentColumn, int previousRow, int previousColumn )

void currentItemChanged ( QTableWidgetItem * current, QTableWidgetItem * previous ) 改变Item了

void itemActivated ( QTableWidgetItem * item )

void itemChanged ( QTableWidgetItem * item )

void itemClicked ( QTableWidgetItem * item )

void itemDoubleClicked ( QTableWidgetItem * item )

void itemEntered ( QTableWidgetItem * item )

void itemPressed ( QTableWidgetItem * item )

void itemSelectionChanged ()

QT学习笔记-36.QTableWidget根据表格自动调整列宽度

分类:高品质来自于对自己的无情挑剔2012-07-30 14:15 756人阅读评论(0) 收藏举报QT学习笔记-36.QTableWidget根据表格自动调整列宽度

ui->tableWidget->horizontalHeader()->setResizeMode(QHeaderView::Stretch);//使列平均分配QTableWidget要调整表格行宽主要涉及以下一个函数

1.resizeColumnsToContents(); 根据内容调整列宽

2.resizeColumnToContents(int col); 根据内容自动调整给定列宽

3.horizontalHeader()->setResizeMode把给定列设置为给定模式

主要模式有Stretch和Fixed

posted @ 2011-11-29 22:21 ccsdu2009 阅读(486) | 评论(0) | 编辑收藏

QT学习笔记-38.使用QSetting

QSetting类是QT中专门用于读写程序数据的对象

一个简单的使用例子如下:

QSettings setting("config.ini",QSettings::IniFormat);

setting.beginGroup("config");

setting.setValue("page",Q Variant(3));

setting.setValue("site",Q Variant("https://www.doczj.com/doc/1b3973202.html,/gaimor/"));

setting.setValue("maker",QVariant("Gaimor"));

setting.endGroup();

这个例子是把数据写到配置文件config.ini中去

当然也可以使用分组的方式写入,具体如下:

setting.setValue("config/page",QVariant(3));

setting.setValue("config/site",QVariant("https://www.doczj.com/doc/1b3973202.html,/gaimo

r/"));

setting.setValue("config/maker",QVariant("Gaimor"));

它的读写值得函数原型如下:

void setValue(const QString &key, const Q Variant &value);

QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;

QTableWidget的其中某些列怎么设置为只读模式使其不能被修改

2012-03-05 17:18 706人阅读评论(0) 收藏举报for(int i = 0; i

{

item(i, colunm)->setFlags(Qt::NoItemFlags);

}

(参考了某些前辈的,不要介意哦,(*^__^*) )嗯嗯!暂时想到和用到的只有这么多了,再用再补。。。

特殊疑问词的用法

特殊疑问词
意思 who
用法
例句 He is LiLie He is my brother. Who is he ? Who is he ?

问人的身份,姓名
等 whom

问人的身份,姓名
I can ask him the question. Whom can you ask the question? He is a worker. He has a book. What is he? What does he have ?
等(问宾语) what
什么
问人的职业或事物
是什么 which
哪一个
问一定范围内特指
The big box is mine. Which box is yours? The girl at the door is Ann. This is her book. This book is hers. Which girl is Ann?
的人或物 whose
谁的
问所属关系
Whose book is this ? Whose is this book?
what color What time
什么颜色
问颜色(表语)
My skirt is red. What color is your skirt? We play games at five in the afternoon ? What time do you play games?
几点
问点时间
when
什么时候
问时间
We play games in the afternoon ? When do you play games?
where
什么地方
问地点(状语)
We play games at home on Sunday ? Where do you play games on Sunday?
why
为什么
问原因
He isn't at school today because he is ill. Why isn't he at school today ?
how
怎样
问健康状况、
He is fine/strong. I go homeby bike. He is ten.
How is he ? How do you go home?
做事的方式等 how old
多大几岁
问年龄
How old is he ?

过去完成时态用法小结

过去完成时态的用法小结 默认分类2009-12-27 12:54:52 阅读281 评论0 字号:大中小订阅 一、过去完成时适用场合 1. 过去完成时表示在过去某一时间或动作以前已经完成了的动作。这个过去的时间常用by,before等介词短语或一个时间状语从句表示,也可以暗含在上下文中。 I had finished my homework before supper.我在晚饭前就把作业做完了。 The play had already started when we got to the theatre. 我们到剧场时戏已经开始了。 By the end of June they had treated over 10,000 patients. 到六月底他们已经治疗了一万多病人。 2. 过去完成时还可表示过去某一时刻之前发生的动作或状态持续到过去某个时间或还要持续下去,常与for,since等词连用。如: He had served in the army for ten years before he retired last year. 他在部队干了十年,去年退役了。 He told me that he had known her since he was a child. 他告诉我他从小就认识她。 He had learned English for eight years before he went to England for further study. 他在去英国深造前,已学了八年英语。 3. 在一段情景连贯的文字中,先发生的事放在后面叙述时,要用过去完成时。如: Tom flew home, but his father had already died. 汤姆乘飞机回家,他的父亲却已经去世了。4. 过去完成时也用于hardly...when..., no sooner...than..., It was the first time + that分句等一些固定句型中。 He had no sooner left the room than they began to talk about him. 他刚离开房间,他们就议论起他来。 We had hardly begun when we were told to stop. 我们刚开始就被叫停。 It was the first time that he had ever spoken to me in such a tune.他用这样的语调跟我讲话,这是第一次。 二、过去完成时与一般过去时的比较 1. 当一个由before, after, as soon as 等连词引导的从句所表示的动作和主句的动作紧接着发生时,两个动作均可用一般过去时来表示。 We had breakfast after we did morning exercises. 做完早操后,我们吃早饭。 The train started to move just before he reached the platform. 他到月台时火车刚开走。 They started ploughing as soon as they got to the fields. 他们一到地里就开始耕地。 2. 按时间顺序叙述两个或两个以上接连发生的动作时,用一般过去时。 He entered the room, turned on the light and sat down at the table. 他走进屋子,打开灯,坐在桌子旁。 3. 在表示某人过去未曾完成的“心愿”、“打算”、“计划”、“想法”、“许诺”等时,hope, mean, plan, think, intend等谓语动词常用过去完成时。 I had hoped to be back last night, but I didn’t catch the train. 我本来希望昨晚回来的,但没搭上火车。 We had thought to return early but they wouldn’t let us go. 我们本想早回来的,但他们不让我们走。 4. 在表示过去的句子中出现常与完成时态连用的词,如:already,yet,since,for,ever,never及次数名词等时,常用过去完成时来表示。

特殊疑问词的用法总结与练习

疑问词意义用法例句 what什么用来问是什么,叫什么,做什 么等 1. What’s your name? 你叫什么名 字?2.What’s your father?你爸爸 是干什么的?3.what is in your box? 你的盒子里是什么? What time什么时间用来问时间What time is it? 几点了?What time is it now? 现在几点了? What colour什么颜色用来问颜色1.waht colour is your bag? 你的书包是什么颜色?2.what colour is your book?你的书本是什么颜色? What about怎么样用来征求意见或询问感受等, 大多用于承接上面的同样问题 1.what bout this pair of shoes? 这双鞋子怎么样?2.what about you? 你呢?3.what about your dad? 你爸爸呢? What day星期几用来问星期几1.what day is it today? 今天星期几?2. what day was yesterday? 昨 天星期几? What date什么日期问具体的日期1.What’s the date today? 今天是几号?2. what date is tomorrow? 明天是几号? What …for为何目的用来问目的,在一定情况下只 可以与why互换 What did you buy that for? 你为 什么要买那个? when什么时候用来问时间1.when do you get up?你什么时候起床?2. when did you go there? 你什么时候去的那里? where哪里用来问地点1. where is my ruler? 我的尺子在哪里?2.where are you from? 你是哪里人?3. where are you going to ? 你打算去哪里? which哪一个用来问具体的哪一个1. which season do you like best?你最喜欢哪个季节?2.which class are you in?你在哪一个班?3.which one is my pen?哪一个是我的钢笔? who谁用来问人物是谁1.who is that boy?那个男孩是谁? 2. who are you going to with? 你打算和谁一起去? 3. Who is that pretty lady?那个漂亮的女士是谁? whose谁的用来问东西是谁的 1. whose bag is this? 这是谁的包? 2.whose bike is yellow? 谁的自行车是黄色的?

过去完成时知识点总结和题型总结(word)

过去完成时知识点总结和题型总结(word) 一、初中英语过去完成时 1.—We all went to the park except you last weekend. Why didn't you come? —Because I the park twice. A. have gone to B. had gone to C. had been to D. have been to 【答案】 C 【解析】【分析】have gone to去了(尚未回).have been to去过(已回),根据句意在last weekend之前去过,所以用过去完成时,故选C。 【点评】本题考查过去完成时的用法,表示在过去某一时间前已经发生的动作。 2.Sue didn't go to see the film with us last week because she ________________ it with her mother. A. has seen B. had seen C. will see D. saw 【答案】 B 【解析】【分析】句意:苏上星期没和我们一起去看电影,因为她和她妈妈一起看过了。 A.已经看了,现在完成时; B.已经看了,过去完成时; C.将看,一般将来时; D.看了,一般过去时。Sue和妈妈看了电影的影响是上周Sue没有和我们看电影,所以用完成时,根据didn't可知是与过去有关,所以用过去完成时,结构是had+动词过去分词,see的过去分词是seen,故选B。 【点评】考查过去完成时,注意平时识记其结构,理解句意。 3.Jake _____his key in the office so he had to wait until his wife _______ home. A. has forgotten … comes B. forgot… come C. had left… came D. had left…would come 【答案】 C 【解析】【分析】句意:杰克把他的钥匙丢在办公室了,因此他不得不等到他的妻子回家。结合语境可知前文描述的是过去某时前已经完成的动作,故用过去完成时态。下文指的是过去某时的动作,故用一般过去时态。选C。 【点评】英语中的时态主要是借助于时间状语与上下文语境来进行判断。解答此类题型,首先要注意句子中的时间状语,如果没有则要通过分析上下文,结合语境来判断句子的时态。 4.When I ______ the cinema, the film _______for ten minutes A. got to; has begun B. arrived at; has been on C. reached; had begun D. hurried to; had been on

英语过去完成时的用法总结

英语过去完成时的用法总结 它表示句子中描述的动作发生在“过去的过去”。 基本结构 主语+had+过去分词vpp、(done) ①肯定句:主语+had+过去分词、 ②否定句:主语+had+not+过去分词、 ③一般疑问句:Had+主语+过去分词? 肯定回答:Yes,主语+had、 否定回答:No,主语+had not 、 ④特殊疑问句:特殊疑问词或词组+一般疑问句(Had+主语+过去分词)? 基本用法表示在过去某一时刻或动作以前完成了的动作,也可以说过去的时间关于过去的动作。即“过去的过去”。可以用by, before等介词短语或一个时间状语从句来表示,也可以用一个表示过去的动作来表示,还可能通过上下文来表示。 例如: By nine o’clock last night, we had got200 pictures from the spaceship、到昨晚9点钟,我们已经收到200 张飞船发来的图片。 过去完成时-语法判定 1、由时间状语来判定

一般说来,各种时态都有特定的时间状语。与过去完成时连用的时间状语有: (1 ) by + 过去的时间点。如: I had finished reading the novel by nine oclock last night、 (2 ) by the end of + 过去的时间点。如: We had learned over two thousand English words by the end of last term、 (3 ) before + 过去的时间点。如: They had planted six hundred trees before last Wednesday、 2、由“过去的过去”来判定。 过去完成时表示“过去的过去”,是指过去某一动作之前已经发生或完成的动作,即动作有先后关系,动作在前的用过去完成时,在后的用一般过去时。这种用法常出现在: (1 )宾语从句中 当宾语从句的主句为一般过去时,且从句的动作先于主句的动作时,从句要用过去完成时。在told, said, knew, heard, thought等动词后的宾语从句。如: She said that she had seen the film before、 (2 )状语从句中

英语中的常见六大疑问词的用法

英语中的常见六大疑问词的用法 who whose where when what how 这六个词的常见用法(指的是一般情况下的用法,除特殊外) 1.回答中有“物”,就用来提问; 2.回答中有“地方,地点”,就用where来提问 3.回答中有“方式,方法”,就用how来提问 4.回答中有“人”,就用who来提问 5.回答中有“人的所有格”,就用whose来提问 6.回答中有“时间”,就用when来提问 以上这六种里最简单的为第四个。就刚才所说六点现在举例说明如下: # 1. (What) are you going to take 2. (Where) are you from Sandwiches,milk and cakes. I am from New York. 3. (How) did you get there 4. (Who)is going to help me I got there by train . Mike. 5. (Whose) bag is this 6. (When) are you going to watch TV Mike's bag is this. At eight o'clock. 英语疑问词用法总结 句子是英语学习的核心。从句子使用的目的来分,它可分为四类1、陈述句(肯定句和否定句)2、疑问句(一般疑问句、特殊疑问句和选择疑问句)3、祈使句(肯定句和否定句)4、感叹句。四大句子类型的相互转换,对于学生来讲是个难点,为此,可通过说顺口留的形式来帮助学生解决这一难题。如:将陈述句变成一般疑问句,可以变成这样的顺口留:疑问疑问调个头,把be(系动词“is are am”)放在最前头。又如:将陈述句

特殊疑问词的用法

一.特殊疑问词的用法 1.what 表示‘什么’的意思 例:My favourite fruit is peach.(对划线部分提问) What’s your favourite fruit(你最喜欢的水果是什么) 表示‘何时’ She goes to work at 7:oo.(对划线部分提问)(她7点去上班) When does your mother go to work(你妈妈几点去上班) 3.How如何,怎样 I go to school by bike.(对划线部分提问)(我骑自行车上学) How do you go to school(你怎样去上学) 4.where哪里 He lives in Baoding.(对划线部分提问)(他住在保定) Where does he live(他住在哪里) 5.Why为什么 Why are you late(你为什么迟到了) Because my bike is broken. (因为我自行车坏了) 注意:要根据句意去选择正确的疑问词。 二.注意乐器前加the,球类前不加the 例:play the piano Play the guitar Play basketball Play football 三.注意过去式的表达 一般情况下,在动词后面加ed do的过去式did,(don’t-didn’t) 句型: I watched Tv yesterday evening.(变成否定) I didn't watch TV yesterday evening. 注意:变为否定以后,didn't已经体现出来了过去事态,所以之后的动词watch不用再用过去式watched,而用原形 同样现在时态也是一样 例:He goes to school by bike.(变成否定) He doesn’t go to school by bike. 看Unit4练习题第二题第四小题,第四题第2小题,第五题第2,3,5小题,第七题第3小题 四.tomorrow明天 Yesterday昨天today今天now现在 例句: I’m going to the park now.(现在) I watched a movie yesterday.(过去) I will go to Beijing tomorrow.(将来)

人教版英语过去完成时的用法大全附答案

人教版英语过去完成时的用法大全附答案 一、初中英语过去完成时 1.By the time I got to school, I realized that I ________ my backpack at home. A. have forgotten B. had forgotten C. have left D. had left 【答案】 D 【解析】【分析】句意:我到学校的时候,我意识到我把书包忘在家里。考查过去完成时。by the time:到…时候为止;通常引导一个时间状语从句,表示“到……的时候为止”主句则表示在此时间之前某个事件已完成。值得注意的是,当从句用过去时时,主句通常用过去完成时。Leave sth. Sp.:把…落在某地。结合句意和语境可知选D。 【点评】此题考查过去完成时的用法。 2.Mary thought of the party which she___________ for this day. A. plan B. planned C. had planned D. would plan 【答案】 C 【解析】【分析】句意:玛丽想起了她今天计划的聚会。plan的动作发生在thought of的动作之前,表示过去的过去,要用过去完成时had+过去分词。故选C。 【点评】考查过去完成时的构成和用法。注意过去完成时表示过去的过去含义。 3.The bus ______ for five minutes when Tim arrived at the station. A. went B. has left C. had left D. had been away 【答案】D 【解析】【分析】句意:当迪姆到达车站时,公交离开了五分钟了。表示到达车站前已经发生或完成的动作,句子用过去完成时态;leave是一个非延续性的动词,不能与表示一段时间的状语for…连用,可以表达成be away,形容词表示状态,可以与表示一段时间的状语连用。故选D。 【点评】本题考查过去完成时以及延续性动词的用法。 4.The girl sitting next to me on the plane was very nervous, for she before. A. didn't fly B. hasn't flown C. hadn't flown D. wasn't flying 【答案】C 【解析】【分析】句意:飞机上坐在我旁边的女孩很紧张,因为她以前没有坐过飞机。根据上文的句子The girl sitting next to me on the plane was very nervous的一般过去时态可知,这里空白处所表示的是过去的过去,谓语应该用过去完成时态:had+动词的过去分词。根据句意,故答案为C。 【点评】考查过去完成时态。掌握过去完成的意义和用法:表示过去的过去的动作或状

过去完成时用法小结

过去完成时用法小结 一、过去完成时适用场合 1. 过去完成时表示在过去某一时间或动作以前已经完成了的动作。这个过去的时间常用by,before等介词短语或一个时间状语从句表示,也可以暗含在上下文中。 I had finished my homework before supper.我在晚饭前就把作业做完了。 The play had already started when we got to the theatre. 我们到剧场时戏已经开始了。 By the end of June they had treated over 10,000 patients. 到六月底他们已经治疗了一万多病人。 2. 过去完成时还可表示过去某一时刻之前发生的动作或状态持续到过去某个时间或还要持续下去,常与for,since等词连用。如: He had served in the army for ten years before he retired last year. 他在部队干了十年,去年退役了。 He told me that he had known her since he was a child. 他告诉我他从小就认识她。 He had learned English for eight years before he went to England for further study. 他在去英国深造前,已学了八年英语。 3. 在一段情景连贯的文字中,先发生的事放在后面叙述时,要用过去完成时。如: Tom flew home, but his father had already died. 汤姆乘飞机回家,他的父亲却已经去世了。4. 过去完成时也用于hardly...when...(刚…就…), no sooner...than... (刚…就…), It was the first time + that分句等一些固定句型中。 He had no sooner left the room than they began to talk about him. 他刚离开房间,他们就议论起他来。 We had hardly begun when we were told to stop. 我们刚开始就被叫停。 It was the first time that he had ever spoken to me in such a tune.他用这样的语调跟我讲话,这是第一次。 二、过去完成时与一般过去时的比较 1. 当一个由before, after, as soon as 等连词引导的从句所表示的动作和主句的动作紧接着发生时,两个动作均可用一般过去时来表示。 We had breakfast after we did morning exercises. 做完早操后,我们吃早饭。 The train started to move just before he reached the platform. 他到月台时火车刚开走。 They started ploughing as soon as they got to the fields. 他们一到地里就开始耕地。 2. 按时间顺序叙述两个或两个以上接连发生的动作时,用一般过去时。 He entered the room, turned on the light and sat down at the table. 他走进屋子,打开灯,坐在桌子旁。 3. 在表示某人过去未曾完成的“心愿”、“打算”、“计划”、“想法”、“许诺”等时,hope, mean, plan, think, intend等谓语动词常用过去完成时。 I had hoped to be back last night, but I didn’t catch the train. 我本来希望昨晚回来的,但没搭上火车。 We had thought to return early but they wouldn’t let us go. 我们本想早回来的,但他们不让我们走。 4. 在表示过去的句子中出现常与完成时态连用的词,如:already,yet,since,for,ever,

特殊疑问词的用法

特殊疑问词的用法 What 问事物和问人的职业(对名词提问用What,对动词提问用What、、、do,这个do随划线的第一个单词而定,如果是原形就要do,如果划线的第一个单词是V-ing,那么这个词就要用doing) He is a teacher.(对职业提问)What is he ? This is a book.(对名词提问)What is this? He is going to play basketball this afternoon.(对动词提问)What is he going to do this afternoon? They practice reading English every day. (对动词提问)What do they practice doing every day? Who 问人事身份和姓名等 Whom 问人的身份(宾格) Which 对一定范围内什么人或者什么物提问 The girl in red is my classmate. Which girl is your classmate? The one on the desk is mine. Which one is yours? Whose 问所属关系(对形容词性物主代词提问或者’s的提问) What color 对颜色提问(如果这个颜色是修饰名词的,那这个疑问词要用Which) What time 对具体某个时间提问 What day 对星期几提问 What date 对具体的几月几号提问 When 对什么时候提问 Where 对地点和表地点的介词短语提问 Why 对because引导的句子提问 How 对形容词、副词、方式提问 How old 对年龄提问 How much+不可数名词对不可数名词和钱提问 How many+ 可数名词的复数对数字提问 How far 对距离提问 How often 对频率和次数提问 How long 对for+一段时间提问问物体的长短 How soon 对in+一短时间提问

中考考点_过去完成时知识点汇总(全)

中考考点_过去完成时知识点汇总(全) 一、初中英语过去完成时 1.—How long you TV by the time I called you? —For about two hours A. had; watched B. have; watched C. did; watch D. were; watching 【答案】 A 【解析】【分析】由句中的by the time可判断.这里用过去完成时,故选A。句意是:—到我打电话给你为止,你已经看了多长时间的电视了?—大约两个小时。 【点评】本题考查过去完成时的用法。 2.We are too tired. Please stop __________ a rest. A. to have B. having C. have D. has 【答案】 A 【解析】【分析】句意:我们是在太累了,停下来休息一下吧。stop to have a rest.固定搭配故选A 【点评】注意时态一致, 3.Jake _____his key in the office so he had to wait until his wife _______ home. A. has forgotten … comes B. forgot… come C. had left… came D. had left…would come 【答案】 C 【解析】【分析】句意:杰克把他的钥匙丢在办公室了,因此他不得不等到他的妻子回家。结合语境可知前文描述的是过去某时前已经完成的动作,故用过去完成时态。下文指的是过去某时的动作,故用一般过去时态。选C。 【点评】英语中的时态主要是借助于时间状语与上下文语境来进行判断。解答此类题型,首先要注意句子中的时间状语,如果没有则要通过分析上下文,结合语境来判断句子的时态。 4.By the end of last month, Jane _____ enough money for the poor sick boy. A. raised B. would raise C. had raised D. has raised 【答案】 C 【解析】【分析】句意:在上个月末,珍已经为贫穷的生病的孩子筹集到了足够的钱。根

过去完成时结构与用法

过去完成时(The Past Perfect Tense):过去完成时表示过去某一时间之前完成的动作或发生的情况,句子谓语形式由had+动词的过去分词构成,通常表述为“过去的过去”。在不同的句子结构中有相应体现,也可跟有一定的时间状语,如by, before等介词或连词。 1. 过去完成时的结构: 肯定句:主语+had+done+others A. I had arrived. 我已经到了。 B. He had sent the letter. 他已经寄了这封信。 否定句:主语+had+not+done+others A. However,Her father had not brought her birthday presents. 然而,她的父亲没有给她买生日礼物。 疑问句:had+主语+done+others 肯定回答:YES,主语+had/否定回答:NO,主语+ hadn’t

A. Had Lisa gone to costume ball ? 丽莎已经去化妆舞会了吗? Yes,she had. 是的,她去了。 No,she hadn’t. 没有,她没去。 特殊疑问句:特殊疑问词+had+主语+done+others A. Why had The Castle become a memory of generation? 为什么电影城堡已经成为了一代的记忆? 被动语态:主语+had(not)been+done+others A. At the end of last year,another magic design had been completed. 在去年低,另一个神奇的设计已经完成。 B. There was still doubtful that why the film had not been chased by public. 对于这部电影为什么没有被大众所追捧依然存在些疑惑。2. 过去完成时的用法 在宾语从句中的运用:

(完整版)过去完成时的用法总结,推荐文档

1. cleaned the blackboard 2. closed the window ——————∣—————∣—————→∣——→ had cleaned the closed the window now blackboard She had cleaned the blackboard before she closed the window. After she had cleaned the blackboard , she closed the window. 1. ran out of breath 2. drank water ——————∣—————∣—————→∣——→ had run out drank water now of breath He had run out of breath before he drank water. After he had run out of breath, he drank water. 1. ate an apple 2. slept ——————∣—————∣—————→∣——→ had eaten slept now an apple She had eaten an apple before she slept. After she had eaten an apple , she slept. 一、过去完成时定义: ②过去某动作一直持续到现在将来可能还要延续下去。句中的动作发生在过去之前(过去的过去),即过去完成时动作发生在过去的过去。 He said he had been to Beijing twice. 他说他已经去过北京两次。(因为“说”said就是过去式,而去北京的动作发生在说said 的过去,所以用过完而不用现完。

特殊疑问词的用法

特殊疑问词的用法

特殊疑问词的用法
意思 用法 例句
who 谁 问 人 的 He
is
LiLie
身份,姓 Who is he ?
名等 He is my brother.
Who is he ?
whom 谁 问 人 的 I can ask him the
身份,姓 question.
名 等 ( 问 宾 Whom can you ask
语)
the question?
what 什么 问 人 的 He is a worker.
职 业 或 What is he?
事 物 是 He has a book.
什么 What does he have ?
which 哪一 问 一 定 The big box is mine.
个 范 围 内 Which box is yours? 特 指 的 The girl at the door is Ann. Which girl is Ann?
人或物
2

whose 谁的 问 所 属 This is her book. 关系 Whose book is this ?
This book is hers.
Whose is this book?
what 什么 问 颜 色 My skirt is red. What color 颜色 (表语)color is your skirt?
What 几点 问 点 时 We play games at five
time

in the afternoon ?
What time do you
play games?
when 什么 问时间 We play games in the
时候
afternoon ?
When do you play
games?
where 什么 问 地 点 We play games at 地方 (状语)home on Sunday ?
Where do you play
games on Sunday?
3

常用的特殊疑问词及用法

常用的特殊疑问词及用法 悬赏分:0 |提问时间:2010-11-6 15:14 |提问者:wodeyianna555 推荐答案 when 什么时间 问时间 who 谁 问人 whose 谁的 问主人 where 在哪里 问地点 which 哪一个 问选择 why 为什么 问原因 what 什么 问东西 what time 什么时间

what colour 什么颜色 问颜色 what about …怎么样 问意见 what day 星期几 问星期 what date 什么日期 问具体日期 what place 什么地点 问具体地址 what for 为何目的 问目的 what proportion 什么比例 问比例 what is the cost (成本或花费)是多少问耗费 what happen 发生了什么 问事件 how …怎么样 问情况 how old 多大

how many 多少 问数量 how much 多少 问价钱 how about …怎么样 问意见 how far 多远 问路程 how long 多长 问时间 How soon 多快,多久 问时间 How often /How frequently 多久 问频率 How come 怎么发生的 问原因(或方式) How so/How’s that 怎么,如何这样的? 问方式,原因 how what where why等特殊疑问词的用法 悬赏分:0 |提问时间:2010-7-26 16:17 |提问者:彼岸花wp 这些特殊疑问词的用法,区别,谁教教我哈?谢谢

推荐答案 how怎么样 what 什么 where哪里 why为什么 意思区分就可以了 特殊疑问句由疑问词开头,其构成是“疑问词+ 一般疑问句”。 特殊疑问句不能用yes, no来回答,而应根据它所询问的内容直接做出回答才行。如: — What time is it, please? 请问几点了? — It's 7:30. 七点半了。 — Where are they? 他们在哪儿? —They're in the playground. 他们在操场上。 —What's your favorite subject? 你最喜爱的科目是什么? —English. 英语。

过去完成时用法小结

过去完成时用法小结 过去完成时用法小结 1. 表示在过去某一时刻或某一动作之前已经完成了的动作(即所谓的“过去的过去”)或表示从过去某一时刻开始一直延续到另一过去时刻的动作或状态。如:When we arrived he had already left. 我们到达时他已经离开了。 By six o’clock he had worked twelve hours. 到6点钟时他就已工作了12小时。 2. 表示未曾实现的希望或打算,主要用于hope, want, expect, think, suppose, plan, mean, intend 等动词。如: I had meant to come, but something happened. 我本想来,但有事就没有来。 We had thought to return early but they wouldn't let us go. 我们本想早回来的,但他们不让我们走。 3. 用于某些特殊句型。如: This was the first time he had ever been late. 这是他第一次迟到。(类似it was the first time that…后的从句谓语要用过去完成时) It was three years since we had left the city. (那时)我们离开那座城市已有三年。(类似it was…since…后的从句谓语要用过去完成时)

We had no sooner set out than a thunderstorm broke. 我们刚出发就遇到了大雷雨。(no sooner…than 的主句谓语要用过去完成时) He had hardly arrived when it began to snow. 他一到,天就下起雪来了。(hardly…when 的主句谓语要用过去完成时)

常见特殊疑问词的用法

常见特殊疑问词的用法 Company Document number:WTUT-WT88Y-W8BBGB-BWYTT-19998

猿辅导期中复习资料—特殊疑问词 How的疑问句辨析 1、how many

对there be句型中主语的数量提问时,如果主语是可数名词,不管主语是单数还是复数一般都用复数形式提问。即用How many+可数名词复数+are there+地点/时间状语的句型结构 如: There is a pen on the desk. (用how many改为特殊疑问句) How many pens are there on the desk 2、how much (1)用来询问事物的数量,后接不可数名词 例如:How much water is there in the cup杯里有多少水 (2)用来询问事物的重量 例如:-How much does the pig weigh这头猪多重 (3)how much 意为“多少钱”时,用来询问某物的价钱、价格。 例如:-How much is the book这本书多少钱 3、how long (1)表示多长时间,主要用来对一段时间提问 如:A:How long did he live here 他在这儿住了多久 B:About two years. 大约两年。 (2)表示某东西有多长,对长度提问。 如:A:How long is the ruler 这根尺子有多长 B:About 20 cm. 大约20厘米。 4、how soon 指再过多久,主要对表示将来的一段时间(如in an hour, in two weeks)提问 如:A:How soon will he be back 他要多久才回来 B:In an hour. 1 小时以后。

相关主题
文本预览
相关文档 最新文档