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. Resizing QLineEdits in QLayouts
Forum Updated to NodeBB v4.3 + New Features

Resizing QLineEdits in QLayouts

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 3 Posters 1.2k 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.
  • C Offline
    C Offline
    CEO.
    wrote on last edited by
    #1

    invent.JPG

    Hello great minds,

    The photo attached is a display of QLayouts involving QGroupBox, QGridLayout, QFormLayout, QHBoxLayout, QVBoxLayout. Please is there anyway I can reduce the length of the qLineEdit row there and also the qTextEdit width?

    Please do not refer me to QT documentation, if you know it, kindly share your idea.

    eyllanescE 1 Reply Last reply
    0
    • C CEO.

      invent.JPG

      Hello great minds,

      The photo attached is a display of QLayouts involving QGroupBox, QGridLayout, QFormLayout, QHBoxLayout, QVBoxLayout. Please is there anyway I can reduce the length of the qLineEdit row there and also the qTextEdit width?

      Please do not refer me to QT documentation, if you know it, kindly share your idea.

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #2

      @CEO

      1. Provide a minimal verifiable example.
      2. Provide an image of what you want to achieve.
      3. Avoid the comment: Please do not refer me to QT documentation, if you know it, kindly share your idea., as it is noise, as well as sounding pedantic.

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      C 1 Reply Last reply
      1
      • eyllanescE eyllanesc

        @CEO

        1. Provide a minimal verifiable example.
        2. Provide an image of what you want to achieve.
        3. Avoid the comment: Please do not refer me to QT documentation, if you know it, kindly share your idea., as it is noise, as well as sounding pedantic.
        C Offline
        C Offline
        CEO.
        wrote on last edited by
        #3

        @eyllanesc the length of the qLineEdits are too long, I would want them reduced.

        eyllanescE 1 Reply Last reply
        0
        • C CEO.

          @eyllanesc the length of the qLineEdits are too long, I would want them reduced.

          eyllanescE Offline
          eyllanescE Offline
          eyllanesc
          wrote on last edited by
          #4

          @CEO Your comment is very vague, using a phrase similar to the one you use: Please do not repeat the same, if you want help provide exactly what has been asked of you.

          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

          C 1 Reply Last reply
          0
          • eyllanescE eyllanesc

            @CEO Your comment is very vague, using a phrase similar to the one you use: Please do not repeat the same, if you want help provide exactly what has been asked of you.

            C Offline
            C Offline
            CEO.
            wrote on last edited by
            #5

            @eyllanesc here are some lines of code:

                fboxx3.addRow(datee,self.datexxx)
                fboxx3.addWidget(tran)
                fboxx3.addRow(self.loc)
            

            self.datexx and self.loc are qLineEdits inside a QFormLayout. I want their lengths reduced. They are already displayed in my previous post. That's all I can provide. Honestly I think my post IS VERY CLEAR.

            eyllanescE 1 Reply Last reply
            0
            • C CEO.

              @eyllanesc here are some lines of code:

                  fboxx3.addRow(datee,self.datexxx)
                  fboxx3.addWidget(tran)
                  fboxx3.addRow(self.loc)
              

              self.datexx and self.loc are qLineEdits inside a QFormLayout. I want their lengths reduced. They are already displayed in my previous post. That's all I can provide. Honestly I think my post IS VERY CLEAR.

              eyllanescE Offline
              eyllanescE Offline
              eyllanesc
              wrote on last edited by
              #6

              @CEO 1) No, that piece is not a verifiable minimal example. 2) You have not provided the image I have requested. 3) Your question is unclear and probably that will discourage the community from helping you. You are always asked for something reasonable but you refuse to provide it, then you complain about the help you provide. Does that sound reasonable? Well no, it is annoying and irritating. You ask for a lot but you give so little. Please avoid CAPS.

              If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

              C 1 Reply Last reply
              0
              • eyllanescE eyllanesc

                @CEO 1) No, that piece is not a verifiable minimal example. 2) You have not provided the image I have requested. 3) Your question is unclear and probably that will discourage the community from helping you. You are always asked for something reasonable but you refuse to provide it, then you complain about the help you provide. Does that sound reasonable? Well no, it is annoying and irritating. You ask for a lot but you give so little. Please avoid CAPS.

                C Offline
                C Offline
                CEO.
                wrote on last edited by
                #7

                @eyllanesc I will take it that you don't wanna help. Let me hope on someone else please.

                eyllanescE 1 Reply Last reply
                0
                • C CEO.

                  @eyllanesc I will take it that you don't wanna help. Let me hope on someone else please.

                  eyllanescE Offline
                  eyllanescE Offline
                  eyllanesc
                  wrote on last edited by
                  #8

                  @CEO In the same way that you have the right to question, I also have the right to comment and criticize politely.

                  If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                  C 1 Reply Last reply
                  0
                  • eyllanescE eyllanesc

                    @CEO In the same way that you have the right to question, I also have the right to comment and criticize politely.

                    C Offline
                    C Offline
                    CEO.
                    wrote on last edited by CEO.
                    #9

                    @eyllanesc

                    Ordinarily, that is a simple question to understand, just that I have no idea how to resolve it. How do I resize a qLineEdit inside a qFormLayout.

                    eyllanescE 1 Reply Last reply
                    0
                    • C CEO.

                      @eyllanesc

                      Ordinarily, that is a simple question to understand, just that I have no idea how to resolve it. How do I resize a qLineEdit inside a qFormLayout.

                      eyllanescE Offline
                      eyllanescE Offline
                      eyllanesc
                      wrote on last edited by
                      #10

                      @CEO Before you praised me for my answers that where exactly I asked the OP to provide enough information, and now that I do it with you then I am irritating. How difficult is it to provide what I have asked of you?

                      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                      C 1 Reply Last reply
                      0
                      • eyllanescE eyllanesc

                        @CEO Before you praised me for my answers that where exactly I asked the OP to provide enough information, and now that I do it with you then I am irritating. How difficult is it to provide what I have asked of you?

                        C Offline
                        C Offline
                        CEO.
                        wrote on last edited by
                        #11

                        @eyllanesc ahahahahaha when you're excellent, I will definitely praise you but when you're too strict, I will also let you know. I know you know what I am requesting for.

                        eyllanescE 1 Reply Last reply
                        0
                        • C CEO.

                          @eyllanesc ahahahahaha when you're excellent, I will definitely praise you but when you're too strict, I will also let you know. I know you know what I am requesting for.

                          eyllanescE Offline
                          eyllanescE Offline
                          eyllanesc
                          wrote on last edited by
                          #12

                          @CEO No, I do not understand you. Visual issues often have many interpretations. In my experience when they describe something visual to me I prefer to have an image of what is expected since many times (but many) I have interpreted it differently (the words sometimes, and it seems that this is the case, they are not precise causing multiple interpretations ) and that's a waste of time.

                          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                          C 1 Reply Last reply
                          0
                          • eyllanescE eyllanesc

                            @CEO No, I do not understand you. Visual issues often have many interpretations. In my experience when they describe something visual to me I prefer to have an image of what is expected since many times (but many) I have interpreted it differently (the words sometimes, and it seems that this is the case, they are not precise causing multiple interpretations ) and that's a waste of time.

                            C Offline
                            C Offline
                            CEO.
                            wrote on last edited by
                            #13

                            @eyllanesc then I sincerely apologize. I know you just want people going straight to the point. I don't understand your minimal requirement there.

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

                              The requirement is: provide a minimal amount of code that produces the widget with the issue you have. Nothing irrelevant to it, just a complete minimal script that we can copy/paste and run.

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

                              C 1 Reply Last reply
                              1
                              • SGaistS SGaist

                                The requirement is: provide a minimal amount of code that produces the widget with the issue you have. Nothing irrelevant to it, just a complete minimal script that we can copy/paste and run.

                                C Offline
                                C Offline
                                CEO.
                                wrote on last edited by
                                #15

                                @SGaist thank you SGait, I have gotten a better clue and it works fine.

                                For example if the qLineEdit is self.datetx,
                                self.datetx = QLineEdit()
                                self.datetx.setMaximumWidth(50)

                                that 50 is just a variable, x which can be changed.

                                That is what I've been asking and Mr. @eyllanesc won't tell me he doesn't understand it. He does.

                                eyllanescE 1 Reply Last reply
                                0
                                • C CEO.

                                  @SGaist thank you SGait, I have gotten a better clue and it works fine.

                                  For example if the qLineEdit is self.datetx,
                                  self.datetx = QLineEdit()
                                  self.datetx.setMaximumWidth(50)

                                  that 50 is just a variable, x which can be changed.

                                  That is what I've been asking and Mr. @eyllanesc won't tell me he doesn't understand it. He does.

                                  eyllanescE Offline
                                  eyllanescE Offline
                                  eyllanesc
                                  wrote on last edited by
                                  #16

                                  @CEO Plop, so you know more about me than I know. Do not overestimate me, I do not understand some things because perhaps you do not know how to explain it or because I am not able to understand you.

                                  If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                                  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