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. How to completely remove title bar
Forum Updated to NodeBB v4.3 + New Features

How to completely remove title bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 11.4k 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.
  • mrjjM mrjj

    Hi
    That is the border.
    Here it how it looks in win 7
    alt text

    And no , you cannot have no border and it can still resize. Windows cant do that.
    (as far as i know)

    Update: ahh sorry. U mean the white area ?
    I thinks part of the menu but the flat design of win 8+ makes it hard to see.

    ExcludosE Offline
    ExcludosE Offline
    Excludos
    wrote on last edited by Excludos
    #3

    @mrjj Yeah exactly the white area. I don't see any reason why that would be part of the windows border, even if it disappears when you remove the border. I've been looking options in the qss file to see if it's a margin or padding that's left over but no luck so far.

    edit: Just tried it on some of the example apps as well and they all also do the same thing:

    alt text

    mrjjM 1 Reply Last reply
    0
    • ExcludosE Excludos

      @mrjj Yeah exactly the white area. I don't see any reason why that would be part of the windows border, even if it disappears when you remove the border. I've been looking options in the qss file to see if it's a margin or padding that's left over but no luck so far.

      edit: Just tried it on some of the example apps as well and they all also do the same thing:

      alt text

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #4

      @Excludos
      Ahh , i see now at home on win 10.
      When captionless, the border top is wider than around.
      alt text

      So it really is the border. No qss can affect that.
      Seems to be a win 10 thing. in win 7 and before, it really is same
      width for the border.

      Only cure for this ( i think) is to find out why win 10 is like that. There might be
      native option to remove it.

      ExcludosE 1 Reply Last reply
      2
      • mrjjM mrjj

        @Excludos
        Ahh , i see now at home on win 10.
        When captionless, the border top is wider than around.
        alt text

        So it really is the border. No qss can affect that.
        Seems to be a win 10 thing. in win 7 and before, it really is same
        width for the border.

        Only cure for this ( i think) is to find out why win 10 is like that. There might be
        native option to remove it.

        ExcludosE Offline
        ExcludosE Offline
        Excludos
        wrote on last edited by Excludos
        #5

        @mrjj said in How to -completely- remove title bar:

        @Excludos
        Ahh , i see now at home on win 10.
        When captionless, the border top is wider than around.
        alt text

        So it really is the border. No qss can affect that.
        Seems to be a win 10 thing. in win 7 and before, it really is same
        width for the border.

        Only cure for this ( i think) is to find out why win 10 is like that. There might be
        native option to remove it.

        Hmm. Your effect is quite different from mine tho, as yours is just a very thick border on top while mine just seems to be a mm of padding or margin.

        If it is a windows thing then that sucks. Sure I could maybe fix it on my computer, but this is an application meant to be used on any computer without having to fiddle with native windows settings just to make it look decent =/ I'd probably be better off removing the border completely and making my own draggable border from scratch.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Hmm strange on your image, it seems not be part of border?`
          It stays white even when window has focus?

          ExcludosE 1 Reply Last reply
          0
          • mrjjM mrjj

            Hmm strange on your image, it seems not be part of border?`
            It stays white even when window has focus?

            ExcludosE Offline
            ExcludosE Offline
            Excludos
            wrote on last edited by Excludos
            #7

            @mrjj said in How to -completely- remove title bar:

            Hmm strange on your image, it seems not be part of border?`
            It stays white even when window has focus?

            Correct. It only disappears if you make it fullscreen or remove the entire border

            mrjjM 1 Reply Last reply
            0
            • ExcludosE Excludos

              @mrjj said in How to -completely- remove title bar:

              Hmm strange on your image, it seems not be part of border?`
              It stays white even when window has focus?

              Correct. It only disappears if you make it fullscreen or remove the entire border

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @Excludos
              ahh. just tried on clean windows. I changed my border focus color so thats why
              its blue here. Default it looks like your sample so yes seems to be a window 10 thing.
              Border is bigger in top.

              1 Reply Last reply
              1
              • m.sueM Offline
                m.sueM Offline
                m.sue
                wrote on last edited by
                #9

                Hi,
                you can try to play with the WindowMetrics: https://www.eightforums.com/tutorials/8463-border-width-windows-change-windows-8-a.html. The text is Win8 but the registry keys still have the same names.
                -Michael.

                ExcludosE 1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by mrjj
                  #10

                  Hi
                  I think the best work around is just to use mainwindow type with status bar so user can resize
                  the window by the corner and then use no borders. I assume that your use case its a bit special since
                  captionless windows are not that common on desktop. ( not talking 'modern' apps )
                  alt text

                  ExcludosE 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    Hi
                    I think the best work around is just to use mainwindow type with status bar so user can resize
                    the window by the corner and then use no borders. I assume that your use case its a bit special since
                    captionless windows are not that common on desktop. ( not talking 'modern' apps )
                    alt text

                    ExcludosE Offline
                    ExcludosE Offline
                    Excludos
                    wrote on last edited by Excludos
                    #11

                    @mrjj said in How to -completely- remove title bar:

                    Hi
                    I think the best work around is just to use mainwindow type with status bar so user can resize
                    the window by the corner and then use no borders. I assume that your use case its a bit special since
                    captionless windows are not that common on desktop. ( not talking 'modern' apps )
                    alt text

                    I've looked at the status bar thing and found it clashes with the looks I'm trying to go for. It's not a super special application, but the design I'm trying to go for does not work with a title bar that I can't change the looks of.

                    I've just started working on creating my own window drag resize thing from scratch instead. A lot more work than I was hoping for (and bigger potential for bugs), but the end results should look good at least :)

                    Still think this is a weird oversight by Windows. I can't be the first person wanting to remove the title bar without removing the border.

                    1 Reply Last reply
                    0
                    • m.sueM m.sue

                      Hi,
                      you can try to play with the WindowMetrics: https://www.eightforums.com/tutorials/8463-border-width-windows-change-windows-8-a.html. The text is Win8 but the registry keys still have the same names.
                      -Michael.

                      ExcludosE Offline
                      ExcludosE Offline
                      Excludos
                      wrote on last edited by
                      #12

                      @m.sue said in How to -completely- remove title bar:

                      Hi,
                      you can try to play with the WindowMetrics: https://www.eightforums.com/tutorials/8463-border-width-windows-change-windows-8-a.html. The text is Win8 but the registry keys still have the same names.
                      -Michael.

                      I'm sure this would work, but then it would work on my computer alone and no one else's, unless I required everyone to start changing windows registry keys for my application alone. That's not a very good design principle.

                      M 1 Reply Last reply
                      0
                      • ExcludosE Excludos

                        @m.sue said in How to -completely- remove title bar:

                        Hi,
                        you can try to play with the WindowMetrics: https://www.eightforums.com/tutorials/8463-border-width-windows-change-windows-8-a.html. The text is Win8 but the registry keys still have the same names.
                        -Michael.

                        I'm sure this would work, but then it would work on my computer alone and no one else's, unless I required everyone to start changing windows registry keys for my application alone. That's not a very good design principle.

                        M Offline
                        M Offline
                        mnam12
                        wrote on last edited by
                        #13

                        Hi @Excludos I know this is old, but did you ever find a solution for the extra white area or did you end up going frameless and implementing custom mouse events to resize?

                        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