Results 1 to 6 of 6

Thread: Any good QT Designer LAYOUT tutorials?

  1. #1
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Any good QT Designer LAYOUT tutorials?

    I've been reading this QT Layout documentation and watched various youtube video's on how to propperly use the layout functions of designer. But even if i do exactly the same steps as in a video, it goes wrong when i click one of the layout buttons and my UI instantly implodes in all directions.

    So far, i haven't found any good tutorials on the subject. Can anyone recommend some good QT layout tuts?

  2. #2
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Any good QT Designer LAYOUT tutorials?

    A weekend gone by and no answer...

    Anyway, here's one of those tutorials i followed earlier:

    http://www.youtube.com/watch?v=9E2KOphwZMg

    It recreates a dialog box from Firefox. All goes well until 5:35, then everything goes completely different then shown in the video. I presume i have a more recent version of Qt Designer and that it doesn't exactly behave the same, but it doesn't make the learning process any easier.
    Last edited by Nyte; 4th February 2013 at 09:30.

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

    Default Re: Any good QT Designer LAYOUT tutorials?

    The tutorial is fine (for a tutorial) and it doesn't matter whether you're using an older or newer version of Qt Designer. This is how it is with tutorials, if you don't understand how things work then even a minimal difference of your actions compared to the tutorial on an early stage grows and grows and becomes unfixable at some point. I don't know what is wrong in your case but considering that near 5:35 the tutorial shows that you can snap widgets to different cells (and spans) of a layout grid then probably the grid is wrong in your case.

    I suggest that instead of looking for "tutorials", you just read the docs on how layouts work then launch Designer and start experimenting on your own by manipulating properties you had read about in the docs. You'll learn much more this way.

    By the way, it is "Qt" and not "QT". The latter is a multimedia technology of the "fruit company".
    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. #4
    Join Date
    Jan 2013
    Posts
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Any good QT Designer LAYOUT tutorials?

    The problem with the documents are that they are either too basic (yes, i understand that if you press the grid button, everything will be put in a grid), or too advanced (complete with C functions and whatnot).

    I'm a HTML/CSS webdesigner with a basic understanding of Javascript. I have little to zero knowledge of other programming language and I've noticed that if i have a problem with Qt, the answer usually involves changing something in the code.

    Anyway, I've been experimenting with Qt Designer for a whole week, both on my job and at home, and i still have problem manipulating the elements on how i want them. So far the only workaround is to just absolute position everything, but i can't do that for long.

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

    Default Re: Any good QT Designer LAYOUT tutorials?

    Quote Originally Posted by Nyte View Post
    The problem with the documents are that they are either too basic (yes, i understand that if you press the grid button, everything will be put in a grid), or too advanced (complete with C functions and whatnot).
    It's strange that you have an opinion on Qt's documentation if you haven't read it. Anyway, that's how it works -- you read the docs and then verify your knowlege with your own experiments. If you still don't understand something that you feel is important, you visit a forum such as this one and ask a specific question about it.

    I'm a HTML/CSS webdesigner with a basic understanding of Javascript. I have little to zero knowledge of other programming language and I've noticed that if i have a problem with Qt, the answer usually involves changing something in the code.
    Qt is about coding so you shouldn't be surprised

    Anyway, I've been experimenting with Qt Designer for a whole week, both on my job and at home, and i still have problem manipulating the elements on how i want them. So far the only workaround is to just absolute position everything, but i can't do that for long.
    I have no idea what problems you have so it is hard to suggest a solution. I never had to do any absolute positioning in Qt myself. Everything (well.. almost) can be done with proper understanding of layouts. Tutorials won't teach you that -- you'll only be able to repeat what was done in the tutorial. It's not creative, it's "recreative".

    By the way, fixed positioning is not a solution. Try chainging your system font to a larger one and see how it messes up your UI.
    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. #6
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,539
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Any good QT Designer LAYOUT tutorials?

    Maybe show us a small picture what You want.

Similar Threads

  1. New C++ tutorials at MEGA C++ tutorials
    By studentri23 in forum General Programming
    Replies: 2
    Last Post: 15th December 2012, 15:44
  2. Layout in Qt Designer
    By eiswand in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2010, 22:24
  3. layout and designer
    By franco.amato in forum Qt Tools
    Replies: 1
    Last Post: 23rd September 2010, 05:46
  4. Good beginner tutorials
    By bijan311 in forum Newbie
    Replies: 2
    Last Post: 2nd March 2010, 08:37
  5. how to promote layout in Designer?
    By homerli in forum Qt Tools
    Replies: 1
    Last Post: 11th May 2009, 16:40

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.