qt5

PanGu 开发板SD卡镜像制作

六月ゝ 毕业季﹏ 提交于 2019-12-15 22:15:53
0 - 相关文章    01-PanGu STM32MP1资料下载    02-STM32MP1 开发环境搭建    03-PanGu 开发板固件更新-SD卡    03-PanGu 开发板固件更新-USB    04-STM32MP1 uboot编译    05-STM32MP1 linux编译    06-STM32MP1 yocto qt构建    07-PanGu 开发板SD卡镜像制作 目录 0 - 相关文章 PanGu STM32MP 镜像制作 1 - 安装需要的软件包 2 - 制作更新包 3 - panguboard-emmc-qt5文件夹 4 - 将打包好的文件,制作为img文件 欢迎加群 PanGu STM32MP 镜像制作   这里仅介绍qt5包的制作,weston包大家可参考PanGu官方Wiki。 1 - 安装需要的软件包 sudo apt-get install kpartx fdisk mount dosfstools e2fsprogs 2 - 制作更新包   从PanGu网盘下载需要的文件包 BuildUpdatePackage.tar.gz 。 使用如下命令解压压缩包: tar xvzf BuildUpdatePackage.tar.gz   解压后,目录下有两个文件夹panguboard-emmc-qt5、panguboard-emmc

QT5 -- 基础知识-2

两盒软妹~` 提交于 2019-12-14 22:19:55
http://c.biancheng.net/view/3871.html Dynamic Link 和 Static Link Dynamic Link 即动态链接,Static Link 即静态链接。 动态链接库 目标程序通常都不是独立个体,生成程序时都需要链接其他的库,要用到其他库的代码。对于多个程序同时运行而言,内存中就可能有同一个库的多个副本,占用了太多内存而干的活差不多。 为了优化内存运用效率,引入了动态链接库(Dynamic Link Library),或叫共享库(Shared Object)。使用动态链接库时,内存中只需要一份该库文件,其他程序要使用该库文件时,只要链接过来就行了。由于动态库文件外置,链接到动态库的目标程序相对比较小,因为剥离了大量库代码,而只需要一些链接指针。 使用动态库,也意味着程序需要链接到如 *.dll 或 *.so 文件,得提前装好动态库文件,然后目标程序才能正常运行。 静态链接库 静态库就是将链接库的代码和自己编写的代码都编译链接到一块,链接到静态库的程序通常比较大,但好处是运行时依赖的库文件很少,因为目标程序自己内部集成了很多库代码。 库文件后缀 Linux /Unix 系统里静态库扩展名一般是 .a,动态库扩展名一般是 .so 。Windows 系统里 VC 编译器用的静态库扩展名一般是 .lib,动态库扩展名一般是 .dll 。

qwt

血红的双手。 提交于 2019-12-14 12:57:44
一、 1.下载地址 https://sourceforge.net/projects/qwt/ 2.用Qt打开qwt.pro,选择MSVC2017_32bit编译。 3.把生成的文件\designer\plugins\designer\qwt_designer_plugin.dll 复制到D:\ProgramFiles\Qt5.13.2\Tools\QtCreator\bin\plugins\designer 下面,打开Qt界面设计就可以看到有此插件。 4.lib\qwt.dll和lib\qwtd.dll 复制到D:\ProgramFiles\Qt5.13.2\5.13.2\msvc2017\bin; lib\qwt.lib和lib\qwtd.lib复制到D:\ProgramFiles\Qt5.13.2\5.13.2\msvc2017\lib; 5.在D:\ProgramFiles\Qt5.13.2\5.13.2\msvc2017\include新建一个文件qwt,把所有的头文件拷贝到此目录下。 6.新建Qt项目,在pro添加DEFINES += QT_DLL QWT_DLL 库引用: win32:CONFIG(release, debug|release): LIBS += -LD:/ProgramFiles/Qt5.13.2/5.13.2/msvc2017/lib/ -lqwt

skipping incompatible… / cannot find

孤人 提交于 2019-12-14 03:43:35
问题 When I'm trying to compile even the simplest application... with nothing but just a Widget I get the following errors, I guess they are all the same errors, I don't know if I'm doing something bad or is something else, I really would appreciate your help The error log: [...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5UiTools.a when searching for -lQt5UiTools [...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1

QVariant with custom class pointer does not return same address

只谈情不闲聊 提交于 2019-12-14 03:42:07
问题 I need to assign a pointer to a custom class in qml using QQmlContext::setContextProperty() . Another qml object has Q_PROPERTY of the same type to retrieve it again. A simple test showed me that the conversion does not work like i thought. #include <QCoreApplication> #include <QDebug> #include <QMetaType> class TestClass { public: TestClass() { qDebug() << "TestClass()::TestClass()"; } }; Q_DECLARE_METATYPE(TestClass*) int main(int argc, char *argv[]) { QCoreApplication app(argc, argv);

QT开发之QT5 connect新语法:Lambda表达式

江枫思渺然 提交于 2019-12-14 01:14:00
Qt 5 之前的语法 在 Qt 5 之前,我们需要使用下面的语句来链接 signal 和 slot: connect(sender, SIGNAL(valueChanged(QString, QString)), receiver, SLOT(updateValue(QString))); Qt 实际上利用 SIGNAL和SLOT这两个宏 ,把其后的函数名转换成一个字符串。随后,moc 将会扫描全部文件,将所有的 signal 和 slot 提取出来做成一个 映射表 。QObject::connect()函数则会从这个映射表里面找到该字符串,从 signal 的名字就可以找到 slot 的名字,因此也就知道了在 signal emit 的时候,该去调用哪一个 slot 函数。 Qt 5 之前的 signal/slot 语法的问题 从上面的解释可以看出,Qt 5 之前版本提供的这种语法其实有一些问题: 没有编译期检查 :因为函数名被处理成字符串,所有的检查都是在运行时完成的。这就是为什么有时会发生编译通过了,但 slot 并没有被调用。此时,你就应该去检查 console 的输出,看看有没有什么 warning 说明 connect 并没有成功。 因为处理的是字符串,所以 slot 中的类型名字必须用 signal 的完全一致,而且在头文件中的和实际 connect

Use FreeType on Windows with Qt5

╄→гoц情女王★ 提交于 2019-12-14 01:03:02
问题 Does anyone know if it's possible to build Qt5 with FreeType as the text renderer on Windows instead of the native one? I tried compiling Qt5 with -qt-freetype but I still get bad text. Do I have to do something else? 回答1: When looking at the solution proposed by DeadWarlock I studied the Qt source code and realized that QWindowsFontDatabaseFT is created and used when d->m_options & QWindowsIntegration::FontDatabaseFreeType is true . After a bit of googling I found out that turning this

QVariant comparison with own types working?

怎甘沉沦 提交于 2019-12-14 00:18:35
问题 Update I have created an qt bugticket hoping the documentation will be extended. Original Question Believing an Question from 2010 and the Qt Documentation, the operator==() doesn't work with custom types. Quote: bool QVariant::operator==(const QVariant & v) const Compares this QVariant with v and returns true if they are equal; otherwise returns false . QVariant uses the equality operator of the type() it contains to check for equality. QVariant will try to convert() v if its type is not the

Qt5 linking error

让人想犯罪 __ 提交于 2019-12-13 22:07:39
问题 I have just installed Qt5 on my system (linux mint petra) by installing the package qt5-default. I have a simple .ui file and a main.cpp. Using uic, I can translate my .ui file into a .h file, which is included by main.cpp. No problem until now. I run qmake -project, qmake and make. Compiling is just fine, I get main.o. But linking gives me a bunch of "undefined references...". So, I checked the libraries. This is the linker call: g++ -m64 -Wl,-O1 -o qttest main.o -L/usr/X11R6/lib64 -lQt5Gui

(How) can I suppress the warning that a package configuration file was not found?

六月ゝ 毕业季﹏ 提交于 2019-12-13 20:05:25
问题 I'm trying to create a CMakeLists.txt file which tries finding Qt5 , and if that fails, tries falling back to a Qt4 installation. The script works so far, but I'll always get a warning if Qt5 is not installed. Note that FindQt5.cmake is supplied by Qt5 and will not be available if only Qt4 is installed. The basic structure is like this: cmake_minimum_required(VERSION 2.8.11) message("-- Searching for Qt5") find_package(Qt5 COMPONENTS Core Xml Network) if (Qt5_FOUND) message("-- Searching for