The layout is definitely not the problem. Why are you setting fixed sizes on all the widgets?
The layout is definitely not the problem. Why are you setting fixed sizes on all the widgets?
And you really think this is a good idea to do it this way? I see you didn't learn that much for the last three years...
Wysota I'm not posting here because I have free time, I'm posting here because all what I tried doesn't solve my problem, and seems the Qt mailing list neither. ( this is sure the last project I'll do using Qt ).
I created and added a colored QWidget instead of the grid layout into the mainlayout and I didn't get such annoying space that I can not remove, so defilitively the problem is the grid layout
Last edited by franco.amato; 24th November 2010 at 19:10.
Franco Amato
Instead of "doing things", learn something for a change. You are getting paid for your work and I'm answering your questions for free so please don't tell me what you are and what you are not doing because you have free time. I'm not sure your employer would be happy hearing what problems you are having with the simplest things about his project. If you are not willing to invest your work time (or your free time) to learn things you need to know to be a good software developer then maybe this work is simply not meant for you.
If you can't cope with layouts then reimplement resizeEvent for your widget and position the widgets manually.
BTW. I hope you are not violating QLed's licence.
I'm not getting paid for this project, my work is another. I'm doing it for free in my free time and I have no employer, as I'am an employer but this is out of topic.
Would you get paid to write "Instead of "doing things", learn something for a change"?I'm answering your questions for free![]()
Franco Amato
Actually, it seems pretty clear to me that the problem is the programmer. Not the layout.
Use the designer. It allows you to randomly tweak every setting widgets and layouts have to offer, completely at random, in any way you like and without having to actually learn anything. Sooner or later you'll stumble across a collection of settings that do what you want, although you likely won't understand why.
Normally, I'd suggest reading the detailed and extensive documentation that comes with Qt free of charge explaining how to use layouts, but countless suggestions to you in the past to spend five minutes reading something have fallen on deaf ears.
If the sort of answer you're looking for involves having someone else write your code for you, I've mentioned before that I'm available for consulting. My current rates start at $150 per hour, with a minimum of 50 hours, although my availability is limited at the moment and I likely won't have time to start any new projects for at least a couple of months.
Of course is the programmer and not the layout, why do you think I asked for a help.Actually, it seems pretty clear to me that the problem is the programmer. Not the layout.
I can not use the designer at this point as all code is already wrote manually.Use the designer. It allows you to randomly tweak every setting widgets and layouts have to offer, completely at random, in any way you like and without having to actually learn anything. Sooner or later you'll stumble across a collection of settings that do what you want, although you likely won't understand why.
What do you think? That you are the only that read the documentation? I read all regarding layout in the assistant, I replaced the grid layout with other widgets without any problems. Only with this I'm having problems.Normally, I'd suggest reading the detailed and extensive documentation that comes with Qt free of charge explaining how to use layouts, but countless suggestions to you in the past to spend five minutes reading something have fallen on deaf ears.
Do you think I'll spend 7500$ for a software I'm releasing for free for only remove a space in a layout???If the sort of answer you're looking for involves having someone else write your code for you, I've mentioned before that I'm available for consulting. My current rates start at $150 per hour, with a minimum of 50 hours, although my availability is limited at the moment and I likely won't have time to start any new projects for at least a couple of months.
I prefere leaving there the space
Regards
Franco Amato
Maybe you could find the right settings in Designer, generate the C++ code and paste it to your manually written class? Naaa... that would probably be stupid, right?
One can "read" or "read with understanding". Find all your threads, see how many posts they have and compare to other threads in the forum. Then think to which "readers" group do you belong?What do you think? That you are the only that read the documentation? I read all regarding layout in the assistant,
Replacing a layout with some widget doesn't make you an expert of layoutsI replaced the grid layout with other widgets without any problems.
Franco, let's face it - you are having problems with nearly everything.Only with this I'm having problems.
franco.amato (24th November 2010)
I solved my problem...and saved 7500$ SixDegrees
Thanx
Last edited by franco.amato; 24th November 2010 at 22:22.
Franco Amato
Bookmarks