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. QLable changing size when calling the ResizeEvent
Qt 6.11 is out! See what's new in the release blog

QLable changing size when calling the ResizeEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 2.6k 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.
  • L Offline
    L Offline
    LeaA
    wrote on last edited by
    #1

    Hi ,
    I'm trying to resize the size of the label when the ResizeEvent is called.
    there is a widget that holds this label and when i'm changing the size of the widget the label staying as it and don't changed..
    I think that I need to do some change on the label when the ResizeEvent called but I don't know which it's need to be.

    there is anybody who know what i need to do?

    tnx!

    raven-worxR 1 Reply Last reply
    0
    • L LeaA

      Hi ,
      I'm trying to resize the size of the label when the ResizeEvent is called.
      there is a widget that holds this label and when i'm changing the size of the widget the label staying as it and don't changed..
      I think that I need to do some change on the label when the ResizeEvent called but I don't know which it's need to be.

      there is anybody who know what i need to do?

      tnx!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @LeaA said in QLable changing size when calling the ResizeEvent:

      there is anybody who know what i need to do?

      yes, show some code ;)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      L 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @LeaA said in QLable changing size when calling the ResizeEvent:

        there is anybody who know what i need to do?

        yes, show some code ;)

        L Offline
        L Offline
        LeaA
        wrote on last edited by
        #3

        @raven-worx
        I don't have it yet..

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Out of curiosity, why not use a layout ? That would make the resizing handling automatic.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          2
          • SGaistS SGaist

            Hi,

            Out of curiosity, why not use a layout ? That would make the resizing handling automatic.

            L Offline
            L Offline
            LeaA
            wrote on last edited by
            #5

            @SGaist
            i think that i don't using a layout

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

              Then you should consider taking a look at that. Here's the documentation.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 1 Reply Last reply
              1
              • SGaistS SGaist

                Then you should consider taking a look at that. Here's the documentation.

                L Offline
                L Offline
                LeaA
                wrote on last edited by
                #7

                @SGaist
                can you please be more specific?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Did you read the documentation I linked to ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  L 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Did you read the documentation I linked to ?

                    L Offline
                    L Offline
                    LeaA
                    wrote on last edited by
                    #9

                    @SGaist

                    yes and i did a layout but it's doesn't changed anything

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Then as @raven-worx already asked, show us the code you use.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        LeaA
                        wrote on last edited by
                        #11

                        will adjastSize will help?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          If you use layout properly there's no need for that.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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