QtC + + Graphical user interface application Development framework.The origin and development of QT 1. qt OriginHaavard Nord and Eirik Chambe-eng started the development of "Qt" in 1991, the company was founded on March 4, 1994, early named Quasar Technologies, then renamed Troll Tech, and then changed to Trolltech, Chinese name is "Science and technology". The
Respect the author, support the original, if you need to reprint, please attach the original address: http://blog.csdn.net/libaineu2004/article/details/17363165Learn about the supported platforms, compilers, and debuggers from the QT website:Http://qt-project.org/doc/qtcreator-3.0/creator-debugger-engines.html(Home | Docs | Qt Creator 3.0 | Debuggingand Analyzing
QT, QTE, Qtopia differencesQT's authorization is divided into two lines, Commercial and open source versions. If you use the commercial version of QT, then the program developed can be private and commercial, if the use of open-source version of QT, because it uses the GPL protocol, then the program must be issued by the GPL. But since the
This is the last part of the Qt standard dialog box. As shown in its name, QInputDialog is used to receive user input. QInputDialog provides some simple static functions to quickly create a dialog box, just as QColorDialog provides the getColor function. First let's take a look at the getText function: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.co
Value passing between Qt forms (Code backup), qt forms
At the beginning, I was confused by the cloud. Now I know a little bit about it. Now assume there is a form, a MainWindow ,:
Click PushButton to transfer the content in the text box to MainWindow and display it as a Label. I have already painted the interface in advance. The following is the backup code:
Form. h:
#ifndef FORM_H#define FORM_H#include
F
This is the last part of the QT standard dialog box. As shown in its name, qinputdialog is used to receive user input. Qinputdialog provides some simple static functions to quickly create a dialog box, just as qcolordialog provides the getcolor function. First, let's take a look at the gettext function:
Bool Isok;
Qstring text = qinputdialog: gettext (null,
"Input dialog" ,
"Please input your comment" ,
Qlineedit: normal,
"Your comment" ,
Isok
Two methods1.QlabelDrag a Label control, and then set the followingUi->label->settext ("Click on the button to transfer to the page.2.QurlIntroducing Header Files#includeAnd then, say, in the method of a button.Qurl url= "http://www.baidu.com"; Qdesktopservices::openurl (URL);Click on the button on the line. (PS: Convert HTTP to file can also be used to locate the filesystem.)QT Development: Open URLs in QT
qmouseevent::globalpos () value is the same, but the type is more precise qpointf6Qpointqwidget::maptoglobal (constqpoint POS)Const;//Convert window coordinates to display coordinates7Qpointqwidget::mapfromglobal (constqpoint POS)Const;//Convert display coordinates to window coordinates8Qpointqwidget::maptoparent (constqpoint POS)Const;//converts the POS obtained from window coordinates to the coordinates of the parent widget9Qpointqwidget::mapfromparent (constqpoint POS)Const;//converts the pa
Okay. Now we are working.
Open the QT creator tool and select "file" and "new file or project"
There are multiple types of projects and files. Here we are mobile development.
Select "mobile application" on the right of "QT Control Project"
Click "select" and the configuration will pop up, for example:
Enter the project name and file path, and click Next to select a device:
There is an introduction befor
Draw the ant line in Qt and the ant line in QtAbstract
If you have used a PS selection tool, you should know what the ant line is. It is a dotted line used to represent the selection. The key is dynamic!
A self-contained example in Qt has a variety of Trace demonstrations, but the final result can only be a static trace, which is not cool enough. So, you should implement the following by yourself.
Let's tak
A simple implementation of the manshui Filling Algorithm (Qt), the algorithm qt
The so-called manshui filling algorithm is an algorithm that gives a point in a China Unicom domain and uses this as a starting point to locate all the other points in the China Unicom domain and fill it with a specified color.It is called manshui filling because this Algorithm simulates the process of rising water. From one po
In addition to the qthread class, multiple threads are used in QT, And the qtconcurrent framework and qrunable class are also used. (Java is also used in QT ).Both qtconcurrent and qrunable are used together with the Global thread pool.Qtconcurrent and qrunable are only applicable to multiple projects, and they are highly independent.Qtconcurrent: Run () function is relatively simple. Put the item you want
Label: style blog HTTP Io OS AR for SP Div
Qstring
Some basic usage of qstring Basic. cpp
#include
Output
$ ./basic I love chessThe a string has 12 charactersI LOVE CHESSi love chessString Initialization
There are several initialization methods for strings Init. cpp
#include
Output
$ ./init The night trainA yellow roseA blue skyA thick fogA deep forestString element access
Access. cpp
#include
Output
$ ./access EeEOutside the range of the stringEvaluate the string length
Length
Display the QT performance of the windows created by cvnamedwindow (char *, int flag), for example, display coordinates, pixel values, amplification, pan, and save,
Method 1:Select with_qt when compiling the opencv library.
Method 2: After the regular library of opencv is created (that is, the library compiled by with_qt is not selected), you can go to the original directory of c: \ opencv231 \ opencv \ modules \ highgui \ SRC,Copy these three files:
This is the last part of the Qt Standard dialog box. As the name shows, Qinputdialog is used to receive input from the user. Qinputdialog provides a few simple static functions that are used to quickly create a dialog box, just as Qcolordialog provides the GetColor function.
First look at the GetText function:
bool isOK; QString text = QInputDialog::getText(NULL, "Input Dialog","Please input your comment", QLineEdit::Normal,"your comment",isOK); if(
I have a previous article on the QT5.5 when the rotation of Eglfs, this is a sister article, the introduction if the Eglfs under the white border.The first thing I think of is the use of Qt stylesheet, experimented with again, padding attribute is obviously not, the margin property is not, the border property is not. And then Qt::framelesswindowhint. Unfortunately, you can't change that nasty white border.
Tags: causes the server SQL code stat frequency status database failedDate: 2017-04-07Exception information:Error-rtlwerpreportexception failed with status code:-1073741823. Would try to launch the process directlyE:\VictorPrivate\CommPlat\Bin\A2CMangerServer.exe exited with code-1073741819Scene:QT connection MySQL process, the operation database often appear MySQL server has gone exception, originally thought every gone away after, then start again, result because database connection is singlet
Copy dvrrdk to/usr/local/dvrrdk_03.00.00.00/target/rfs_816x and rename it DVR.
For example, after completing the QT environment configuration (refer to the LZ article above), open qtcreator "file"-> "open file or project"
Select the. Pro file to open the project. Click "project" and set it as follows:
"Tools"-> "build and run"
"Linux device"
Compile after setting
Copy the generated executable file
Reading guide
Qt is a cross-platform application and UI framework that can be used to write applications that are deployed across different desktops and embedded operating systems without having to rewrite the source code. Since the release of Qt 4.5, with Nokia continually developing more and more beloved product and experience strategic concepts, the QT product
I plan to do embedded image processing. I plan to use embedded Linux + OpenCV + QT. I started to use OpenCV yesterday and checked QT today. QT will first get the content under Linux and try to get the basic information before going home, then it can run on the board.
Qt details: click hereQt: click here
Recommended rea
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.