简体   繁体   English

qt 5.2.1中缺少标题

[英]Missing header in qt 5.2.1

I'm a Qt newbie. 我是Qt新手。 I'm trying to run tutorial from http://doc.qt.digia.com/3.3/tictac-example.html . 我正在尝试从http://doc.qt.digia.com/3.3/tictac-example.html运行教程。 However, I got error: 但是,我得到了错误:

qptrvector.h: No such file or directory". qptrvector.h:没有这样的文件或目录。

I have no idea what's going on. 我不知道发生了什么事。 Anyone can give me a hint? 有人可以给我提示吗?

You are using a very old example which was written ~10 years ago. 您使用的是一个非常古老的示例,它是大约10年前编写的。 As the technology evolves, this is not up-to-date anymore, and you should not look at it even if you could manage to run it. 随着技术的发展,这已经不是最新的了,即使您能够设法运行它, 也不要看它。 It will confuse you more than help. 它会使您迷惑不解。

For instance, there is no QPtrVector anymore, but that is just one of those examples. 例如,不再有QPtrVector ,但这只是这些示例之一。 Even if you take a look at a later example, you will find QtQuick1 (old and "done/obsolete") demonstration for the tictac example. 即使您看一下后面的示例,您也会在tictac示例中找到QtQuick1(旧的并且“完成/已作废”)演示。

I think you wish to take a look at the examples from these years, eg QtQuickControls : 我想您希望看看这些年来的示例,例如QtQuickControls

Qt Quick Controls Examples Qt快速控件示例

or this one: 或这一个:

Task Menu Extension Example 任务菜单扩展示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM