Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Window
Qt 6.12 LTS is out! See what's new in the release blog

Window

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 4 Posters 3.7k 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
    A Former User
    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
    • ? Offline
      ? Offline
      A Former User
      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
      • ? Offline
        ? Offline
        A Former User
        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
        • ? Offline
          ? Offline
          A Former User
          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.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            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
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @pratik
              thanks

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                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
                • Unsolved