Qt FullScreen problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Qt FullScreen problem

2,226 次查看
laza
Contributor III

Using Qt version 5.2.1, Ubuntu 14.04 (3.14.52) on Nitrogen MAX

C++

int main(int argc, char **argv)
{
    QGuiApplication app(argc, argv);
    QGst::init(&argc, &argv);
    QQmlApplicationEngine view;

    QGst::Quick::VideoSurface *surface = new QGst::Quick::VideoSurface;
    view.rootContext()->setContextProperty(QLatin1String("videoSurface1"), surface);
    view.load(QUrl(QLatin1String("qrc:///main.qml")));
    return app.exec();
}

QML:

import QtQuick 2.2

import QtQuick.Controls 1.1

import QtQuick.Layouts 1.1

import QtQuick.Window 2.0

ApplicationWindow {

    id: appwin1

    visible: true

    flags: Qt.FramelessWindowHint

    width: 1280

    height: 800

...

If I set maximum width and height of display screen or if I use visibility: "FullScreen" 

there are several visible problems which do not appear it the size is any smaller than full-screen:

  • problem with mouse movement - it's like areas where mouse pointer moves do not get repainted correctly
  • check-boxes wont accept change
  • drop down boxes wont close upon opening

I know that it is not performance issue as I have tested the same resolution on more displays and the same size works fine if it is not equal to full screen.

Did anyone else had this problem?

标记 (1)
0 项奖励
回复
1 回复

1,381 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Seems it is a QT questions. you may ask this in QT forum or Stack Overflow .

0 项奖励
回复