AnsweredAssumed Answered

Qt FullScreen problem

Question asked by Laza Laza on Feb 25, 2017
Latest reply on Mar 2, 2017 by jimmychan

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?

Outcomes