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. resize any item
Qt 6.11 is out! See what's new in the release blog

resize any item

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 570 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.
  • AlbatorA Offline
    AlbatorA Offline
    Albator
    wrote on last edited by
    #1

    hello all :)

    is it possible to resize any item with a mouse event to move it to full screen or by stretching it a bit like the main window?

    jsulmJ 1 Reply Last reply
    0
    • AlbatorA Albator

      hello all :)

      is it possible to resize any item with a mouse event to move it to full screen or by stretching it a bit like the main window?

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

      @Albator What is item in this context? Widget?
      You can resize widgets using mouse, see https://forum.qt.io/topic/67019/best-practice-resize-widgets-with-mouse

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

      1 Reply Last reply
      1
      • AlbatorA Offline
        AlbatorA Offline
        Albator
        wrote on last edited by Albator
        #3

        Yes, it's for a widget.

        but I want to be able to resize anything and everything, a qpushbutton or whatever while using the .exe .

        thanks for the link, I'm watching this right now :)

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          every visual entity is a widget so the above applies to buttons, labels and all the rest

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          3
          • gde23G Offline
            gde23G Offline
            gde23
            wrote on last edited by
            #5

            You can add a QSizeGrip to the widgets you want to resize.
            This will add a small grip at the bottom right corner that you can click and resize the widget by mouse.

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

              Hi
              Just as a note. there is also
              https://wiki.qt.io/Widget-moveable-and-resizeable

              1 Reply Last reply
              4
              • AlbatorA Offline
                AlbatorA Offline
                Albator
                wrote on last edited by
                #7

                Thank you all for the doc, I'm not finished yet because I have to do something else but with all this it's as if it's done !

                good day :)

                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