customized, by Qcombobox::d own-arrow To specify the arrow image.If you want to control the style of the pop-up drop-down list for qcombobox, you need to:Qcombobox Qabstractitemview {//sets the style of the drop-down list that pops up when the drop-down button is clicked, note that the style here //Only sets the style of the rectangle that pops the entire drop-down list range, cannot set the drop-down list For each drop-down item in the style, for example, you cannot set each drop-down heigh
).
2) decompress the QT source code to the hard disk.
Example: C:/QT/4.3.0/or C:/QT/4.3.0-msvc/
2. Download and install the patch that allows QT to be compiled with VC.
1) download acs-4.3.0-patch2.zip from the website sourceforge.net.
2) decompress it to the QT source code
++
Can produce a statically compiled project file. And then
Mingw32-makesub-src
You can compile a static library. If you are just distributing the program, you can mingw32-makerelease sub-src to compile only one static library.
VC2015 platform, when compiling QT, Configure.exe-static-platform win32-msvc2015
Then NMAKESUB-SRC or NMAKE release SUB-SRC completes the static compilation.
Then, re-compile your program again with the
, Lu ZiyiExamples + analysis, interspersed with some knowledge points, targeted at new users, very practical, but I am not very recognized for the quality of the Code in it, there is also a lack of principles. In general, it's a good book. You can check it out.
Qt examples:
Http://doc.qt.nokia.com/4.8-snapshot/all-examples.html
Qt Tutorials:
Http://doc.qt.nokia
Original Address:MinGW QTSun 1 EastProblems and workarounds for compiling QT source code using MinGW without using the QT SDK:Configure-fast-release-no-exceptions-no-rtti-no-stl-no-qt3support-no-opengl-no-multimedia-no-webkit-no-script- No-scripttools-nomake tools-nomake examples-nomake demos-nomake docs-nomake translations-platform win32-g++The TDM version of Mi
The article original in Qter Open source community (www.qter.org), author Yafeilinux, reprint please indicate the source!I. Introduction to QT and QT CreatorQt is a cross-platform application and UI development framework. With Qt you only need to develop your application at once, and you can deploy these applications across different desktop and embedded operatin
Qt thread Summary (1) Qt simple thread and qt thread Summary
This series is a summary of the use of a period of time, including thread creation, inter-thread communication, etc., write a little bit every day.
The first section describes how to create and use a thread.
First of all, these articles are mainly intended for newcomers. Because
From: http://www.pin5i.com/showtopic-qt-vs2005-vs2008-mingw-static-compilation.html
Compilation preparation Download the qt sdk on the Nokia website, decompress the SDK, or install it to the relevant directory. This document uses QT 4.6.2 as an example. For example, skip (assuming that it is installed on D: \ QT ):
satisfactory, and, if you want to study deeply, the future contact with the English document is mostly. Press the CTRL+7 key combination (you can also click the Help icon directly) to enter help mode. When viewing help, you may want to bookmark a page so that you can see it later by pressing the shortcut key CTRL + M, or by clicking the icon in the sidebar above the interface. The default is catalog view when you open Help mode, and in fact the Help tool window provides 3 ways to navigate a doc
dynamic library of Demo,examples are still available, install two version will not spend too much time, not the two worlds? Long story short, now say the installation step. 1. To download the Qt-everywhere source package online, if you just want the library, then you can also go to the following URL to find the version you need. http://www.qtcn.org/bbs/read.php?tid=10752. Unzip to your target directory 3.
Qt has rich built-in dialogs, such as color settings, font settings, and file selection. Let's take a look at the overall interface:
Next, let's take a look at the implementation code of the color selection dialog box:
1: qpalette palette = displaytextedit-> palette ();/* Obtain the palette in textedit */ 2: 3:/* Open a color dialog box and obtain the selected color */ 4:ConstQcolor color = 5: qcolordialog: getcolor (palette. color (qpalette:
>This tutorial focuses on using QT creator to create a small QT application for text search, which is a simplified version of the QT UI Tools text Finder example. The user interface of the application is built using QT Designer by the Qt widget, and the logic of the applicat
Qt entry routine (2), qt entry routine
This document uses the QtConcurrent: run () function in Qt as an example to describe how to run a function in a separate thread.
1 QtConcurrent: run ()
QtConcurrent is a namespace that provides high-level interface functions (APIs) to automatically adjust the number of running threads of a program based on the actual number
Introduction to Qt and Qt Creator, and introduction to qtcreator
This article was originally published in The Qter open-source community (www.qter.org) by yafeilinux. For more information, see the source!
I. Introduction to Qt and Qt Creator
Qt is a cross-platform applicatio
Qt and qt music players
Qt music player
Reprinted please indicate the source: dunni column http://blog.csdn.net/u012027907I. Qt
1.1 What is Qt
Qt is a cross-platform application and UI development framework. With
There are two ways to implement timers.
The first type:
1. Create a new GUI project, the project name can be set as a timer. and add a label to the main interface and set its contents to "0000-00-00 00:00:00 Sunday".
2. Add a slot function
LD_LIBRARY_PATH = $ qtdir/lib: $ LD_LIBRARY_PATHMake clean./Configure-no-xft-qvfb-depths, 8, 16, 32MakeStep 3 view the running resultIf the above steps are successfully compiled, you can runQT/Embedded comes with a demo to view the running results.● Run on virtual framebuffer:Export qtdir = $ qtedirExport Path = $ qtedir/bin: $ pathExport LD_LIBRARY_PATH = $ qtedir/lib: $ qt2dir/lib: $ LD_LIBRARY_PATHCD $ qtedir/examples/LauncherQvfb-width 640-height
appear undefined reference to ' png_write_chunk ' etcCOLLECT2:LD return 1Make: * * * * [...] /.. /BIN/QVFB] Error 1
Solution:The first step: #locate libpng
Step Two: Establish link #ln-s/lib/i386-linux-gnu/libpng12.so.0/lib/i386-linux-gnu/libpng.so
Step three: Modify the Makefile file, #gedit Makefile (or #vi Makefile), add-l/lib/i386-linux-gnu-lpng after Libs
After you make it again, you succeed.
After compiling, copy the Qvfb files in the Qt-pc/bin
:\qt\static541_2013-Debug-and-Release-OpenSource-Static -Nomake examples-no-compile-examples Span class= "pun" >-opengl desktop -openvg - platform win32-msvc2013 - target xp -sse4. 2 -no-AVX -no-avx2 - icu -openssl-linked Configure finished directly nmake then nmake install, after a long wait, no problem in D:\Qt\Sta
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.