Page 2 of 2 FirstFirst 12
Results 21 to 32 of 32

Thread: Problem in layout widgets in a grid

  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem in layout widgets in a grid

    The layout is definitely not the problem. Why are you setting fixed sizes on all the widgets?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #22
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by wysota View Post
    The layout is definitely not the problem. Why are you setting fixed sizes on all the widgets?
    I set a fixed size to avoid that their size become bigger that the buttons
    Franco Amato

  3. #23
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem in layout widgets in a grid

    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...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #24
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by wysota View Post
    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...
    I don't know if is the best idea, is the only way I know to do it.
    Sorry but layouts are not my best, for that I'm asking for some help. I can not stay paused for days to only solve this
    Franco Amato

  5. #25
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by franco.amato View Post
    I don't know if is the best idea, is the only way I know to do it.
    Sorry but layouts are not my best, for that I'm asking for some help. I can not stay paused for days to only solve this
    Then go and learn to use layouts properly instead of staying "paused".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #26
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by wysota View Post
    Then go and learn to use layouts properly instead of staying "paused".
    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

  7. #27
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by franco.amato View Post
    I'm posting here because all what I tried doesn't solve my problem
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #28
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by wysota View Post
    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.
    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.

    I'm answering your questions for free
    Would you get paid to write "Instead of "doing things", learn something for a change"?
    Franco Amato

  9. #29
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by franco.amato View Post
    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
    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.

  10. #30
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    Actually, it seems pretty clear to me that the problem is the programmer. Not the layout.
    Of course is the programmer and not the layout, why do you think I asked for a help.

    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.
    I can not use the designer at this point as all code is already wrote manually.

    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.
    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.

    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.
    Do you think I'll spend 7500$ for a software I'm releasing for free for only remove a space in a layout???
    I prefere leaving there the space
    Regards
    Franco Amato

  11. #31
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem in layout widgets in a grid

    Quote Originally Posted by franco.amato View Post
    I can not use the designer at this point as all code is already wrote manually.
    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?

    What do you think? That you are the only that read the documentation? I read all regarding layout in the assistant,
    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?

    I replaced the grid layout with other widgets without any problems.
    Replacing a layout with some widget doesn't make you an expert of layouts
    Only with this I'm having problems.
    Franco, let's face it - you are having problems with nearly everything.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. The following user says thank you to wysota for this useful post:

    franco.amato (24th November 2010)

  13. #32
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in layout widgets in a grid

    I solved my problem...and saved 7500$ SixDegrees
    Thanx
    Last edited by franco.amato; 24th November 2010 at 22:22.
    Franco Amato

Similar Threads

  1. Replies: 8
    Last Post: 5th May 2021, 16:41
  2. Grid Layout problem
    By succorguy in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2009, 23:01
  3. How do I layout in a Grid?
    By DPinLV in forum Qt Tools
    Replies: 7
    Last Post: 10th August 2006, 01:37
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. Grid layout
    By nupul in forum Qt Programming
    Replies: 7
    Last Post: 21st April 2006, 21:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.