qt5.8

Cannot run Qt example in Qt creator: The program has unexpectedly finished

僤鯓⒐⒋嵵緔 提交于 2021-01-27 19:14:28
问题 Recently I tried to upgrade Qt to 5.8.0 on Windows 7 32bit from Qt5.6.2 MSVC 2013, and I saw strange issues. I downloaded and installed Visual Studio 2015 from this link: https://www.visualstudio.com/downloads/ After I installed Qt 5.8.0 MSVC 2015 version, Qt Creator 4.2.1 can be launched. From the welcome page, I selected the example named: "Address Book Example". And then after clicking "Configure" project, the project is listed in Qt Creator. Now I tried to build the project, which was

How to compile Qt 5.8 statically with PostgreSQL plugin in VS2015

北战南征 提交于 2021-01-27 17:39:55
问题 Can anybody who may have any idea compiling Qt 5.8 Open Source statically with PostgreSQL support on Windows. I tried all the options known to me including the below. I'm using qt 5.8 sources on Windows 10 x64. configure -opensource -confirm-license -debug-and-release -static -platform win32-msvc2015 -nomake examples -nomake tests -sql-psql PSQL_LIBS="C:\PSQL\9.6\lib\libpq.lib" -I C:\PSQL\9.6\include\libpq -I C:\PSQL\9.6\include -L C:\PSQL\9.6\lib\libpq.lib After running the config above, I

Qt Lite and configuration changes in Qt 5.8

折月煮酒 提交于 2019-12-17 18:53:46
问题 So allegedly, the configuration tool for Qt went through some changes, necessary to be able to make more streamlined Qt builds, a.k.a "Qt Lite". However, there doesn't seem to be any documentation about how to use that feature, or at least I don't find any, and looking at the comments from the release announcement, others can't neither. What's more, the changes are definitely in there, judging by the fact that the configuration that I've been using for the last couple of years fails in a

PyQt static build fails at make

别等时光非礼了梦想. 提交于 2019-12-12 05:12:48
问题 I have commercial licenses for Qt and PyQt, and am attempting to build static versions of all required software for generating a standalone, executable program that I'm currently writing using Python3 and PyQt. I plan to build natively using VirtualBox, and will probably target Linux and Windows. I'm currently trying to get the Linux build environment set up. The first step to accomplish this is to build a system root directory, as outlined here: http://pyqt.sourceforge.net/Docs/pyqtdeploy

QProcess::startDetached() not show console window

我与影子孤独终老i 提交于 2019-12-10 22:58:30
问题 I have a GUI program that start cli program by click button. I want to see console window and don't need wait until cli program end. So I use code like this: QProcess::startDetached("cmd.exe"); After click button I don't see console window. But see cmd.exe process in task manager. I tried use system() command but it freeze my app before cli program end. Is there any way to make window visible? 回答1: It is the expected behavior. At least in Windows startDetached is equivalent to calling

Visual studio 2017: QT Add-in

一笑奈何 提交于 2019-12-10 11:35:09
问题 I've installed Visual Studio 2017 and QT 5.8. Now I installed a QT-Add-in(from here) and I wanted to add the Path of QT 5.8 in Qt Options(in Visual Studio). But I get an error like : "This QT version uses an unsupported makefile generator (used: MINGW, supported: MSVN.NET, MSBUILD)" Is there a workaround or a way to fix this problem ? 回答1: The Qt that you're attempting to use has not been compiled with a binary-compatible compiler - either Visual Studio 2015 or Visual Studio 2017. You'll have

Can QML caching in Qt 5.8 be disabled for a particular project?

℡╲_俬逩灬. 提交于 2019-12-09 08:40:54
问题 Qt 5.8 was supposed to come with the optional use ahead of time qtquick compiler, instead it arrived with a sort-of-a-jit-compiler, a feature that's enabled by default and caches compiled QML files on disk in order to improve startup performance and reduce memory usage. The feature however arrives with serious bugs which greatly diminish, or in my case even completely negate its benefits, as I didn't have a problem with startup times to begin with, and testing didn't reveal any memory usage

Using pdf.js with Qt5.8

情到浓时终转凉″ 提交于 2019-12-06 15:54:19
问题 I am trying to make a pdf viewer in Qt5.8 .I know that poppler is a choice for Qt but I want to do this using pdf.js .I dont know how to embed pdf.js with Qt5.8 . I have seen the hello world documentation of pdf.js but it didn't helped. Please help me. Thanks in advance . 回答1: The basic idea would be to have some widget to display HTML if you want to make use of pdf.js - it seems that QWebEngineView (makes use of Chromium) could do the job as it takes a minimum of code to get your first

Can QML caching in Qt 5.8 be disabled for a particular project?

∥☆過路亽.° 提交于 2019-12-03 11:04:54
Qt 5.8 was supposed to come with the optional use ahead of time qtquick compiler, instead it arrived with a sort-of-a-jit-compiler, a feature that's enabled by default and caches compiled QML files on disk in order to improve startup performance and reduce memory usage. The feature however arrives with serious bugs which greatly diminish, or in my case even completely negate its benefits, as I didn't have a problem with startup times to begin with, and testing didn't reveal any memory usage improvements whatsoever. So what I would like to do is opt out of that feature in my project, but I don

Qt Lite and configuration changes in Qt 5.8

☆樱花仙子☆ 提交于 2019-11-28 09:13:51
So allegedly, the configuration tool for Qt went through some changes, necessary to be able to make more streamlined Qt builds, a.k.a "Qt Lite". However, there doesn't seem to be any documentation about how to use that feature, or at least I don't find any, and looking at the comments from the release announcement, others can't neither. What's more, the changes are definitely in there, judging by the fact that the configuration that I've been using for the last couple of years fails in a bunch of ways. I am not sure how up-to-date the built in help is, since the last time I tried using it for