Remove QT program under Eglfs left and top white border (remove QT application The border line on Eglfs)

Source: Internet
Author: User

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.

Then think of is the previous eglfs, that can be rotated, is it possible to move a bit. Checked the qmatrix4x4, actually did not translate. After 1.8724357689 seconds of hesitation, suddenly remembered to pan is not to change the coordinates on it.
Before you changed this code:

qmatrix4x4 target = Qopengltextureblitter::targettransform (Textures->geometry (i), targetwindowrect);

I tried to change a little bit targetwindowrect.

Const Qrect Targetwindowrect (qpoint ( -50, 0), M_targetwindow->geometry (). Size ());

Haha, success, like my normal IQ of the person once found the law, decisively changed to

Const Qrect Targetwindowrect (Qpoint (), M_targetwindow->geometry (). Size ());

Problem solving.

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.