Resizing QLineEdits in QLayouts
-
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.
-
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.
-
@CEO
- Provide a minimal verifiable example.
- Provide an image of what you want to achieve.
- 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.
@eyllanesc the length of the qLineEdits are too long, I would want them reduced.
-
@eyllanesc the length of the qLineEdits are too long, I would want them reduced.
-
@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.
@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.
-
@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.
@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.
-
@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.
@eyllanesc I will take it that you don't wanna help. Let me hope on someone else please.
-
@eyllanesc I will take it that you don't wanna help. Let me hope on someone else please.
-
@CEO In the same way that you have the right to question, I also have the right to comment and criticize politely.
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.
-
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.
-
@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?
@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.
-
@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.
@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.
-
@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.
@eyllanesc then I sincerely apologize. I know you just want people going straight to the point. I don't understand your minimal requirement there.
-
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.
-
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.
@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.
-
@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.