long time no update (in fact, big do not have to constantly update it), has been using Qt4, recently thought to turn to QT5, Msys2 is self-brought QT, but the tool chain will often update, rely on more, easy to be convenient, did the last set of QT tool Update, title, Qt-4.8.7 as the QT4 version of the bottom of the press, using gcc-6.2.0 recompile , only 32-bit
Respect Original Works and translations. For reprinting, please maintain the integrity of the article and provide the original author's address in the form of a hyperlink http://blog.csdn.net/changsheng230, so that you can easily ask and correct it.
Friends who are new to Qt may feel mysterious and unfamiliar with the various macros that need to be declared during Qt usage. This article will introduce seve
This experience is mainly the author of the development of the QT program in the development of the problems encountered, and now share to everyone, mainly in QT embedded like resource files.Please leave a message if you have any questions.Tools/Materials
Qt Designer
Qt Open Source 4.8.5
Method/Step
A small record of qt Learning (2), qt Learning Record
Well... This time I received a ticket
A graphical interface is required. You can just consolidate and learn QT. I took it without hesitation.
The following issues are recorded:1. QWidget and QDialog
The slot functions in QDialog include accept () and reject (), which can be directly used.
In addition, the QDia
QT adds the program icon and window icon, and qt adds the icon windowProgram icon material preparation
Icon file: *. ico file, which is stored in the same directory as the source file, for example, "myapp. ico"
Write icon
Write "RC_ICONS = *. ico" into an independent row in the *. pro file, such as RC_ICONS = "myapp. ico"
Generate a program
Run the program to view the software with icons under the
Let's use an example to explain the application of the stylesheet. This example is based on the QT Demo, more complex, there is a certain degree of difficulty, basically covers the previous chapters of the various skill points, mainly including:
How to customize the style sheet for QT
How to apply a style sheet in an application
How to set the style of an application without using a style sheet
How to use a
Tags: ODBC change batch rollback CString set password SQL command moveqt-win-commercial-src-4.3.1, qt-x11-commercial-src-4.3.1Microsoft Visual C + + 6.0, KDevelop 3.5.0Windows Xp, Solaris 10, Fedora 8SQL Server, Oracle 10g Client , driver compilationThere are two database drivers to be mentioned here, namely ODBC and OCI The ODBC driver is compiled in the Windows operating system:Execute the following command to generate Qsqlodbc4.dll under the%qtdir
embedded linux qt Development (ii)--qt Development environment Construction First,Windows system QT development environment Building Operating System: Windows 7QT creator:qt-creator-win-opensource-2.4.1QT Sdk:qt-win-opensource-4.7.4-mingw1. Installing QT CreatorClick qt-crea
using the AddWidget interface, adding a sub-layout using the Addlayout interface. This interface is not commonly used, and its usage principle is to add addwidget widgets and Addlayout layout to this variable.2) AddWidget (Qwidget *w) adds this widget to the specified layout, using the AddItem3) qsize closestacceptablesize (const qwidget * widget, const qsize size) [Static]Returns the size dimensions that meet all throttling policies to the widget, including Heightforwidth (), and as close to s
IfProgramFor example, if you need to load a large amount of data in advance, the program generally has a startup screen. In this way, the user can see that the program is being started rather than simply waiting for it. It also displays some useful information about the program, such as the Program Logo, function module, or product information.
In the QT application, you can use the qsplashscreen class to start the screen. The following is a simple
Qt Address Book (2) Add addresses, qt Address Book add addresses
In the last Qt Address Book (I) interface design, we mainly implemented the address book interface and used the layout manager to layout elements, it also explains the concepts of "subclass" and "ownership.
In this article, we will add three QPushButton buttons on the interface to save the Name and
Qt custom tag button and qt custom tag
When you get started with Qt, you will be surprised by its extremely convenient cross-platform approach and want to try Qt. Gradually, you will find that some of Qt's built-in controls cannot meet your own needs. At this time, we need to define our own controls. In general, there
array of wchar_t to hold Unicode charactersSecond, the character, string in QTQt as a cross-platform framework, the design of the first consideration of the character of the problem;It encapsulates a qstring representing a string, which is a UTF-16 encoded class, and encapsulates a Qchar class that represents a wide character;Then there's the problem: the code in VS is GBKSo just assign the string to qstring as follows:QString str = "A section of Chinese"; Ui.lineedit->settext (str);Running out
How does the Qt application process Chinese parameters during drag-and-drop, and qt drag-and-drop Chinese parameters?
You have developed an application using Qt. When you drag and drop a file to your exe and start your application, the main () function may receive Chinese parameters. How can this problem be solved correctly? The Code is as follows:
QTextCodec
Qt recursive non-recursive traversal file, qt recursive non-
The biggest advantage of qt is that it is cross-platform. Although it is said that qt is well-designed and has a wide range of documents, qt has never been so cool. However, cross-platform architecture can save a l
QT multithreading notes and qt Multithreading
1. it is not convenient to use QThread when QT multithreading involves a large amount of data interaction between the main thread and sub-thread, because the run () function itself cannot accept any parameters, therefore, data can only be obtained through the interaction between the signal and the slot. If only the si
Design of the waiting dialog box in Qt and the waiting dialog box in Qt
A waiting dialog box is used to prompt the user to operate the Qt program for a long time.Qt has a standard QProcessDialog to partially implement this function, but the disadvantage is to calculate the progress. Second, you can cancel it halfway. Therefore, we generally use a custom dialog b
The words are connected to the article. After successfully configuring Qt+lua+tolua, we can implement classes that use each QT in a Lua script. Look directly at the code.#include "include/lua.hpp" #include The author writes several functions of qwidget into the form of static and binds them with Tolua. This makes it possible to use a bound function smoothly in a LUA script. The contents of the following LUA
Qt Property system QT provides a clever property system similar to the property systems supported by some compilers. However, as a platform-and compiler-agnostic library, QT cannot rely on non-standard compiler features such as __property or [property]. QT's solution can be supported by standard C + + compilers under any QT
My system for Ubuntu14.04, with Apt-get installed the implementation of OpenGL MESA,QT is the official website to download the run file to install.OK, now two are all there, so try to write OpenGL code under QT.Before trying to paste the code in vim and then compile, the test succeeds is a statement containing one of the following compilation options.1 GCCBut directly paste the code into the QT creator Clic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.