Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetWindowModified on full screen application

SetWindowModified on full screen application

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _Mark_
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ckakman
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _Mark_
        wrote on last edited by
        #3

        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 :-/

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ckakman
          wrote on last edited by
          #4

          You can use the windowTitleChanged() signal.

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            _Mark_
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved