Does want to does programming in Linux? Probably you need C + + programming environment in Linux. Then you need a GUI programming toolkit for C + +. You can choose C + + with the Qt Framework programming environment in Ubuntu. I'll show you what to get them all (complete with C + + library and an IDE) Ubuntu 15.04. Magically, you get them all just by installing Qt Creator.
650) this.width=65
Reference book: "Qtcreator QuickStart", 2nd edition1. Introduction to QT Qt is a cross-platform application and UI development framework. Using QT is a one-time development of applications that can be deployed across different desktop and embedded operating systems without the need to rewrite the source code. the predecessor of
What makes Ubuntu choose Qt instead of GTK? A fact that is happening, Ubuntu is constantly qt!I've been complaining about the software Center,Today a look at the source code, unexpectedly have SOFTWARECENTER/UI/QML branch,Even though it's kinda ugly to run, But you can imagine that the future is definitely replacing the GTK version-----------------------------------------------------------------------------
The Book of qt4 (1.5 QT overview)
The Book of qt4 Translation
Qt programming Art
---------------------------------------------------------------------------------
Original Name: The Book of QT 4: The art of building QT applications
The Book of QT 4 Chinese version:
the dictionary I designed not only allows you to look up words online, but also has a great feature of a rich local dictionary library : I've added eight types of dictionaries by default, as shown here:because I am a communications professional, so joined the Huawei Communications Dictionary, Electronic Engineering dictionary, and because I love programming, but also added the C language basic function dictionary. Here's how to design a local dictionary:selection of dictionary typesOf Course the
palette = infotextedit-> palette (); // obtain the color palette object for text editing. // qcolor color = qcolordialog: getcolor (qpalette: Base, this ); // The initial color value of the color dialog box is the background color qcolor color = qcolordialog: getcolor (palette. color (qpalette: base), this); // if you click Cancel in the color dialog box, the resulting color is invalid if (color. isvalid () {// qpalette: base is usually used for background color palette. setcolor (qpalette: Bas
Recently used QT5 to do a project interface, in the translation into executable exe, run the file, prompt:This application failed-to-start because it could not find or load the Qt PLATFORM Plugin "Windows"In "".Reinstalling the application may fix this problem.Looked up a lot of information, tried the method, and later found that the D:\Anaconda2\Library\plugins under the platforms folder copied to the project file directory (to copy the entire folder
Qt implements system pallets and qt implements pallets
Most of the software we see usually comes with a system tray, so that the software can run in the background, which is quite good. Today, I checked the demon that comes with Qt. I have a reference in the middle. After implementing this small function, I added this function to my previous project. The effect i
Gray-scale transformation of Qt image processing and qt gray-scale
Changing the brightness and contrast of an image is a common image processing operation, but Qt itself does not provide the corresponding functional code. Therefore, I wrote a simple class to implement these operations. I call this class BrightnessMapper.
The Code is as follows:
#ifndef BRIGHTNE
I wrote a Qt display image control and a qt display image control.
There is no control for displaying images in Qt. We usually use QLabel to display images. However, the QLabel image display capability is weak. For example, image scaling is not supported. So I wrote a simple class myself.
My class supports three image display modes: FIXED_SIZE, CENTRED, AUTO_ZOO
Use Qt. locale to display local data, and use qt. locale to localize
We know that for some applications, we can display different data formats, such as time and money, based on the language selection. In today's routine, we will show you how to use Qt. locale to display data in different formats based on different languages.
import QtQuick 2.0import Ubuntu.Comp
Copyright Notice
Respect Original Works. Reprinted, please maintain the integrity of the article, and in the form of a hyperlink to indicate the original author "tingsking18" and the main site address, so that other friends can ask and correct.
Mixed MFC and QT programming-use QT components in the MFC Program
1.
Create a simpleMFC DialogProgram.
2.
InBool ctestapp: initinstance ()Add to functionQmfc
The QT progress bar Operation example is this article to introduce the content, in QT can use Qprogressbar or the Qprogressdialog to realize the progress bar.
Use of QprogressbarFirst drag a button and a progress bar widget in the designer and initialize it as follows
Ui->progressbar->setrange (0,50000-1); Ui->progressbar->setvalue (0);
Event handling for the button:
void mainwindow::on_pushbutton_clicked (
Use a paint brush
The attributes of a paint brush include line, line width, and color. The attributes of the paint brush can be specified in the constructor or
Setstyle (), setwidth (), setbrush (), setcapstyle (), setjoinstyle (), and other functions
Set items one by one
Attributes of the paint brush. QT uses QT: penstyle to define six paint styles, which are
Qt
For more information, see http://www.doc88.com/p-59138565158.htmland QT doc.
First download the source codeQt-creator-2.4.1-src.tar.gz graphics Development EnvironmentQt-everywhere-opensource-src-4.8.0.tar.gz QT source code, compiled into QT library and qmake
Decompress the package to the system.All QT-related files of
Window
1. First install qtcreator(Qt-creator-windows-opensource-2.6.0.exe) is an integrated development environment for Qt. After installation, there is no option for the Qt Gui application. You must install the Qt library to support the creation of Qt applications. (The
then enter in the midrange: sudo passwd rootEnter the password you want, shutdown restart in the Multiple login box to enter root and your password is good.
Second, install Qtcreater
On QT website Download qt-linux-opensource-5.2.1-x86-offline.runAfter you go to the virtual machine via Mac, cut to/home/zl
In terminal execution:./qt-linux-opensource-5.2.1-x86-off
From: http://www.sudu.cn/info/article/articleInfo.php? Aid = 286993.
Since QT returns unicode encoding, for example, if you directly enter Chinese Characters in lineedit, the returned result is ??, In QT, qtextcodec can be directly used to convert string encoding.Qstring string;String = lineedit1-> text (); // get the text returned by lineedit1Qtextcodec * codec = qtextcodec: codecforname ("GBK ");// Conve
I have tried it many times in ubuntu10.10 and Red Hat Enterprise 6, and there are compilation errors! The final change is to miniora 9 in the mini2440 user manual, which indicates that the establishment of the development environment is related to the system. Some online users say that the GCC versions of the two systems are too new, but I tried the GCC compiler of the earlier version, the problem persists! Refer to the arm development environment for building
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.