Tag: qt5

Qt5未find目标条件

我只是更新到OS X Mavericks的命令行工具的最新版本,现在编译我的(以前工作)的代码,它会引发以下错误 > clang: warning: no such sysroot directory: > '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk' > In file included from ../QtOpenGL/Main.cpp:1: In file included from > ../../Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers/QApplication:1: > In file included from > ../../Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:45: > In file included from > /Users/BB/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qcoreapplication.h:45: > In file included from > /Users/BB/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:76: > /Users/BB/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:196:12: > fatal error: 'TargetConditionals.h' file not found > […]

如何在Qt5中创build/读取/写入JSon文件

Qt5有一个新的JSonparsing器,我想使用它。 问题在于function在外行的用语以及如何编写代码并不太清楚。 这或我可能会读错了。 我想知道在Qt5中创buildJson文件的代码以及“封装”的含义。

在Linux上构build针对Windows的Qt 5

我想迁移我的Qt 4应用程序来使用Qt 5。 由于MXE构buildQt 5的一些差异,包括使用模块化的Qt tarball而不是一个大的tarball, 这些说明失败了。

Qt Creator,ptrace:操作不允许。 什么是永久解决scheme?

在Qt创build器中debuggingC++代码时,出现以下错误 ptrace: Operation not permitted. Could not attach to the process. Make sure no other debugger traces this process. Check the settings of /proc/sys/kernel/yama/ptrace_scope For more details, see /etc/sysctl.d/10-ptrace.conf 这里find了一个临时解决scheme: 在QtProject中尝试debugging时接收错误 临时解决scheme(不会重新启动): echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope 但是,每当我启动我的电脑使用Qt时,在terminal中运行相同的代码是很困难的。 What is the permanent solution for this?

有专门针对PyQt5的教程吗?

我正在寻找一个PyQt5教程。 第一次在没有教程的情况下用Python开始GUI开发是相当复杂的。 到目前为止,我只find了一些PyQt4教程,而且从Qt4到Qt5有所变化,例如Qt5中不再支持SIGNAL和SLOT这一事实,所以对于PyQt5有特定的教程是很好的。 有人可以提供关于如何启动与PyQt5的GUI开发的教程?

项目错误:QT:webkitwidgets中的未知模块

我将代码从qt4移植到qt5。 按照build议将以下行添加到我的.pro文件中: QT += webkitwidgets 但是,当我运行qmake ,我得到这个错误: Project ERROR: Unknown module(s) in QT: webkitwidgets 我正在开发Ubuntu 12.04 LTS,并按照说明安装了Qt。

使用Visual Studio 2012 / Visual Studio 2013构buildQt5,并与IDE集成

你如何获得Qt5下载并与Visual Studio 2012集成? 你遇到的一些问题是什么?你如何解决这些问题? 更新重新。 Visual Studio 2013 Visual Studio 2013也报告了成功,并且维护了VS 2013的注释。 另外请注意, 这个问题的重点强调的只是用Visual Studio 构build Qt。 还有关于与Visual Studio IDE集成的说明

如何在VS2012下静态构buildQt 4.8 / 5.2,使用静态MSVC运行时,支持Windows XP?

我想在VS2012下完全构buildQt 4.8 / 5.2,包括静态运行时库,以及Windows XP系统。 Qt并不支持这个function,因为即使是Qt的静态构build也使用dynamic链接的MSVC运行时。 这是一个典型的问题,它提供了成功构build满足这些需求的Qt所必需的知识。

连接Qt 5中的过载信号和插槽

我在使用Qt 5中的新信号/插槽语法(使用指向成员函数的指针)时遇到了困难,如新信号插槽语法中所述 。 我试着改变这个: QObject::connect(spinBox, SIGNAL(valueChanged(int)), slider, SLOT(setValue(int)); 对此: QObject::connect(spinBox, &QSpinBox::valueChanged, slider, &QSlider::setValue); 但是当我尝试编译它时遇到错误: 错误:没有匹配函数调用QObject::connect(QSpinBox*&, <unresolved overloaded function type>, QSlider*&, void (QAbstractSlider::*)(int)) 我已经在Linux上用clang和gcc尝试过了,都用-std=c++11 。 我做错了什么,我该如何解决?