Home > Mobile >  Qt5.13 when using the findings
Qt5.13 when using the findings

Time:09-25

Had been used qt5.9.1, normal use, basic no problem, after writing a small project, want a change to the application icon, and
Then consult online method of the great god, got the basic idea, as follows:
Win32: RC_FILE +=ico. Rc
Or
RC_ICONS=ico. Ico

But no matter how I try and compile time error all the time, I read in a variety of great god experience, noticed someone said may be because the version problem,

So again, I decisively changed version directly download the qt 5.13, the latest development tools download address:
http://download.qt.io/archive/qt/

After the installation is complete, open the project, compile, indeed as expected is a tool,


Switch to the new version, however, also let I found a new problem:
(1) release file exe, cannot be directly run, need after windeployqt to,
(2) release compilation, the program runs, the serial port can't work normally, not received the data, a serial port to send only after just connect, can only send once, before I open the low version compiled after the release of the program, a serial port to work properly, it follows that the qt5.13 support for a serial port is not very good, so I has been affected by the debugging, (can't be changed a little bit, just windeploqt),


So I decided to change a version again, choose Qt 5.9.8 version, the version for the program icon to change, and the serial port function can be normal support,

Suddenly thought of the send a post to others for your reference, if your bosses know the root cause of the problem, hope to inform,

CodePudding user response:

Reply yourself, alleviate the embarrassed atmosphere

CodePudding user response:

General development in qt run directly, when I was at the end of the packaged software to use windeployqt once up need library files; Want to ask a compiler error because of the added RC_ICONS=ico. Ico this sentence? If there is a problem that should be your project are not loading properly, I use or qt5.4, can the normal loading icon

CodePudding user response:

refer to the second floor also want feet oh full reply today:
general development in qt run directly, when I was at the end of the packaged software to use windeployqt once up need library files; Want to ask a compiler error because of the added RC_ICONS=ico. Ico this sentence? If there is a problem that should be your project are not loading properly, can I use or qt5.4, normal load icon.


Yes, add this sentence complains, remove can normal compilation, switch to other versions, this problem will disappear,

CodePudding user response:

RC_ICONS
Windows only. Specifies the ICONS that should be included into a generated. Rc file. This is only utilized if the RC_FILE and RES_FILE variable are not set. More details about the generation of the rc files can be found in the Platform Notes.
This is Qt5.12.5 release notes, RC_ICONS and RC_FILE or RES_FILE cannot is set at the same time,

Here's how to add. Rc
Adding Windows Resource Files
This section describes how to handle a Windows resource file with qmake and it linked to an application the executable (EXE) or dynamic link library (DLL). Qmake can optionally auto - generate a suitably filled Windows resource file.
A linked Windows resource file may contain many elements that can be accessed by its EXE or DLL. However, the Qt resource system should be used for accessing linked-in resources in a platform-independent way. But some standard elements of the linked Windows resource file are accessed by Windows itself. For example, in Windows explorer the version tab of the file properties is filled by resource elements. In addition, the program icon of the EXE is read from these elements. So it is good practice for a Qt created Windows EXE or DLL to use both techniques at the same time: link platform-independent resources via the Qt resource system and add Windows specific resources via a Windows resource file.
Typically, a resource - definition script (. Rc file) is compiled to a Windows resource file. Within the Microsoft toolchain, the rc tool generates a. Res file, which can be linked with the Microsoft would to an EXE or DLL. The MinGW toolchain USES the windres tool to generate the an. O file that can be linked with the MinGW would to an EXE or DLL.
The optional auto - generation of a suitably filled. Rc file by qmake is triggered by setting The at further one of The system variables VERSION and RC_ICONS. The generated. Rc file is automatically compiled and linked. The Elements that are added to The. Rc file are defined by The system variables QMAKE_TARGET_COMPANY, QMAKE_TARGET_DESCRIPTION, QMAKE_TARGET_COPYRIGHT, QMAKE_TARGET_PRODUCT, RC_CODEPAGE, RC_ICONS, RC_LANG, and VERSION.
If these elements are not sufficient, qmake from the two system variables RC_FILE and RES_FILE that point directly to the an externally created. The rc or. Res file. By setting one of these variables, the specified file is linked to the EXE or DLL.
. Note: The generation of The rc file by qmake is blocked, The if RC_FILE or RES_FILE is set. In this case, no further changes are made to The given. Rc file. Or The res or. O file by qmake; The variables pertaining to. Rc file generation have no effect.

CodePudding user response:

Ico. Ico in what place?

CodePudding user response:

reference 5 floor full table for soot reply:
ico. Ico in what place?
code pro file, do not need to be on the release folder

CodePudding user response:

Version of the Qt 5.13.1 QSerialPort does not produce readyRead signal, this is a BUG, Qt 5.12.5 also have the same problem

CodePudding user response:

reference response: 7th floor full table soot
Qt 5.13.1 version, QSerialPort cannot produce readyRead signals, this is a BUG, Qt 5.12.5 have the same problem
a: I see

CodePudding user response:

Remember before you also have a love mentioned Qt5.13 serial interface has a problem,
Can use a third-party library CSerialPort

CodePudding user response:

Has repaired the

CodePudding user response:

  •  Tags:  
  • Qt
  • Related