QT Development preliminary, gradual, prerequest for blueprint reverse attack

Source: Internet
Author: User

1, use QT Object-oriented class inheritance to create the first window main part, using Setminimumsize (), setmaximumsize () to configure the main part window can be resize;

Qwidget::setgeometry () window size on the screen display position

The Qwidget::setgeometry () function sets the size and position of the window when it is first displayed on the screen and can be moved or resized after the window is displayed;

Qwidget::setgeometry () Interpretation of 4 function parameters

The first 2 parameters determine the position of the window over the entire display, and the last two parameters determine the size of the window (length and width)

Setminimumsize (), setmaximumsize ();

2, Main widget Add object (Button,scroll Bar,label)

Add the object to the window and use the window, because the window is nothing to do!!!

Add an object to a newly created window, This-pointer is important when you add an object

Test Add a button to the main part window

Part codes

QT Development preliminary, gradual, prerequest for blueprint reverse attack

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.