[Qt] vs2015 new blank Qt project

preface Recently studying Qt, Station B After reading a good tutorial, the teacher pulled all the code from scratch without IDE, which is very helpful for novices to learn and understand. Sometimes it is convenient to use IDE, but also missed a lot of details. This tutorial uses UBuntu+vim, which is compiled directly with qmake. It is stil ...

Added by TheHaloEffect on Mon, 10 Jan 2022 04:27:25 +0200

[QT learning] QKeyEvent keyboard event making simple software disk

QKeyEvent keyboard event Constructor: QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text = QString(), bool autorep = false, ushort count = 1)Parameter Description: Type -- > type of event (QEvent::KeyPress, QEvent::KeyRelease, QEvent::ShortCutOverride)Key -- > key value of the key g ...

Added by akano on Sat, 08 Jan 2022 07:52:50 +0200

Qt actual combat case (18) -- Summary example of Qt position correlation function

0. Introduction to position function Qt provides many functions to obtain the position of the form and the size of the display area, which are called position functions. Common location functions are as follows: x(),y(),pos() functions are used to obtain the coordinate position of the upper left corner of the whole form;The frameGeometry ...

Added by The_broken on Thu, 06 Jan 2022 13:27:33 +0200

Chapter 21 scroll area QScrollArea and scroll bar QScrollBar

Imagine if you used 100 buttons in your program, would you choose to display all 100 buttons on the interface at the same time? Of course not, otherwise the interface will be crowded. We can put these 100 buttons in a scroll area QScrollArea. Users can only see a few buttons at first, but the scroll bar allows them to operate the rest of the bu ...

Added by thekidscareya on Thu, 06 Jan 2022 03:32:30 +0200

Qt QPropertyAnimation+QTimer to realize self-made suspension window

Suspended window under Qt The recent project needs a suspension window similar to 360 suspension ball. When the mouse is placed and stayed for a period of time, the suspension window will be expanded and the removed area will be automatically retracted. I looked for it on the Internet, but I didn't find it. Thinking about getting familiar with ...

Added by phpcharan on Thu, 06 Jan 2022 02:34:00 +0200

Qt write security video monitoring system 52 - color configuration

1, Foreword In the system print log or window information bar, all kinds of temporary print information are displayed here. In many cases, we also need to highlight the color display of specific categories of information, such as alarm information, and even different colors can be displayed for information of different alarm levels, which will ...

Added by willc on Wed, 05 Jan 2022 23:01:23 +0200

Python Qt GUI Design: be a serial port debugging assistant (practical Part-1)

catalogue 1. UI design 2. Convert UI file to Py file 3. Logic function realization 3.1 initialization procedure 3.2 serial port detection procedure 3.3. Set and open serial port program 3.4 program for sending data regularly 3.5 data sending procedure 3.6 data receiving procedure 3.7 log saving procedure 3.8. Loading log program 3.9 ...

Added by sebastiaandraaisma on Wed, 05 Jan 2022 06:18:01 +0200

QTabWidget -- multi page switching for creating tabs

QTabWidget is used for pagination display Important functions: 1.void setTabText(int, QString); // Set the name of the page 2.void setTabToolTip(QString); // Set the prompt information of the page 3.void setTabEnabled(bool); // Set whether the page is activated 4.void setTabPosition(QTabPosition::South); // Set the location of the page name 5.v ...

Added by BTalon on Tue, 04 Jan 2022 07:11:34 +0200

QT GUI programming!

1, QT basis 1.1 introduction to QT 1.1.1. What is QT A bunch of C++/python class libraries (GUI classes, network,...)Free open source 1.1.2 QT characteristics: Excellent cross platform characteristics: Qt supports the following operating systems: Windows, Linux, Solaris, sun0s, FreebSD, BSD/S, SCO, AIX, 0S390, QNX, android, etcobject- ...

Added by aladin13 on Mon, 03 Jan 2022 05:57:34 +0200

QT learning notes

QMainWindow QMainWindow is a class that provides users with main window programs, including a menu bar, multiple tool bars, multiple dock widgets, a status bar and a central widget. It is the basis of many applications, such as text editor, picture editor, etc. menu bar A main window has at most one menu bar. Located at the top of the ...

Added by Coreyjames25 on Sun, 02 Jan 2022 01:00:26 +0200