Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Window

Window

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 4 Posters 2.3k Views
  • 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.
  • M Offline
    M Offline
    mikealfa
    wrote on last edited by
    #1

    Can any body tell me how to make the application full screen when clicked on the maximize button ?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      You don't need to do anything. The application will be resized whenever the window size is changed.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mikealfa
        wrote on last edited by
        #3

        but what i am saying is i want my window without the title bar.....as in what happens when we double click in the vlc media player

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pratik041
          wrote on last edited by
          #4

          [quote author="mikealfa" date="1330517063"]but what i am saying is i want my window without the title bar.....as in what happens when we double click in the vlc media player[/quote]

          You can re implement the @mouseDoubleclickevent()@ and their you can call @showmaximized()@
          function.

          Pratik Agrawal

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            Is think there is no platform-independent way of receiving system menu events, so you will have to reimplement the change event and modify the window state accordingly.
            @
            void MainWindow::changeEvent(QEvent *event)
            {
            if(event->type() == QEvent::WindowStateChange)
            {
            if(windowState() & Qt::WindowMaximized)
            {
            showFullscreen();
            }
            }

            QMainWindow::changeEvent(event);
            

            }
            @
            Brain to terminal. Not tested. Exemplary.

            Two additions:

            • you are tinkering with default behaviour here; the user usually does not expect that a window goes into fullscreen when the maximize button is clicked
            • a fullscreen window has no system menu; you will have to provide other means to return from fullscreen, otherwise you are trapped in it
            1 Reply Last reply
            0
            • M Offline
              M Offline
              mikealfa
              wrote on last edited by
              #6

              @pratik
              thanks

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mikealfa
                wrote on last edited by
                #7

                @lukas
                yep...i am doing so because i am developing a game and want it to be fullscreen when clicked on the maximize button

                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