SetWindowModified on full screen application



  • Hi,
    I'm running a full screen application on framebuffer (without X).
    Of course there is no title bar for my QMainWindow.

    However, I would like to use the windowModified feature. Is there a way to do this?
    Unfortunately there isn't a windowModifiedChanged signal, otherwise would be easy to bind its changes to a QLabel.



  • What do you mean by "use the windowModified" feature? setWindowsModified() is called by the application when it needs to be. Since your application doesn't have title bar, it is of no use. Instead of changing a title bar not visible to user, you can update a QLabel as you mentioned.



  • I was talking about the handling of the GUI like the [*] in windows or other decoration in mac/linux.
    Furthermore using the setWindowModified is useful because automatically handles the propagation from the children.

    Without a signal I need to periodically check its value :-/



  • You can use the windowTitleChanged() signal.



  • It doesn't work:

    @
    void MainWindow::windowTitle_changed()
    {
    qDebug() << this->windowTitle();
    }

    connect(this, &MainWindow::windowTitleChanged, this, &MainWindow::windowTitle_changed);
    this->setWindowTitle("[*] - Blabla");
    this->setWindowModified(true);
    this->setWindowModified(false);
    this->setWindowModified(true);
    @

    just prints "[*] - Blabla" once.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.