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 disable resize icon?
Forum Updated to NodeBB v4.3 + New Features

How to disable resize icon?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 4.3k 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.
  • T Offline
    T Offline
    TomNow99
    wrote on last edited by TomNow99
    #1

    Hi,

    I use Win 10 Pro. I set in my mainWindow size like that:

       setMinimumSize(300,300);
       setMaximumSize(300,300);
    
    

    I can't resize window, but when I move mouse's cursor to right bottom corner I see resize Icon. How can I disable it?

    1 Reply Last reply
    1
    • T TomNow99

      @mrjj @Bonnie Thank you for answer, but I think about two ended arrow icon, which I can see when I move my mouse cursor to right bottom corner of my QT App.

      I don't know that I can add picture here, so if you want to know how that arrow looks like, you can go to google.com, search "arrow resize windows", go to images and that arrow is on the second place ( but my resize icon is white, not black ).

      So @mrjj I think about "how you prevent the OS to show a resize cursor on my qt App".

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @TomNow99 Did you try setFixedSize as @mrjj suggested?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Hi
        Do you `mean how you prevent the OS to show a resize cursor?

        Or do you mean this
        alt text
        Then you can remove with
        alt text
        (all of status bar though...)

        also you should use
        setFixedSize(300,300);
        instead.

        That disables the cursor changing. on the borders.

        1 Reply Last reply
        4
        • B Offline
          B Offline
          Bonnie
          wrote on last edited by
          #3

          In addition to what @mrjj has said, if you want to remove the triangle but keep the status bar, you can just uncheck the "sizeGripEnabled" property of statusBar.

          1 Reply Last reply
          3
          • T Offline
            T Offline
            TomNow99
            wrote on last edited by
            #4

            @mrjj @Bonnie Thank you for answer, but I think about two ended arrow icon, which I can see when I move my mouse cursor to right bottom corner of my QT App.

            I don't know that I can add picture here, so if you want to know how that arrow looks like, you can go to google.com, search "arrow resize windows", go to images and that arrow is on the second place ( but my resize icon is white, not black ).

            So @mrjj I think about "how you prevent the OS to show a resize cursor on my qt App".

            B jsulmJ 2 Replies Last reply
            0
            • T TomNow99

              @mrjj @Bonnie Thank you for answer, but I think about two ended arrow icon, which I can see when I move my mouse cursor to right bottom corner of my QT App.

              I don't know that I can add picture here, so if you want to know how that arrow looks like, you can go to google.com, search "arrow resize windows", go to images and that arrow is on the second place ( but my resize icon is white, not black ).

              So @mrjj I think about "how you prevent the OS to show a resize cursor on my qt App".

              B Offline
              B Offline
              Bonnie
              wrote on last edited by Bonnie
              #5

              @TomNow99
              But in my Win 10, if I set both minimum and maximum size of the main window to (300,300), then without the status bar / size grip, there won't be resize arrow/cursor on any corner.
              Actually , windows os resize arrow should show on every corner, if you only see it on the bottom right corner, it is probably due to the size grip...

              1 Reply Last reply
              1
              • T TomNow99

                @mrjj @Bonnie Thank you for answer, but I think about two ended arrow icon, which I can see when I move my mouse cursor to right bottom corner of my QT App.

                I don't know that I can add picture here, so if you want to know how that arrow looks like, you can go to google.com, search "arrow resize windows", go to images and that arrow is on the second place ( but my resize icon is white, not black ).

                So @mrjj I think about "how you prevent the OS to show a resize cursor on my qt App".

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @TomNow99 Did you try setFixedSize as @mrjj suggested?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1

                • Login

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