Results 1 to 8 of 8

Thread: Why don't QT Designer layouts "make sense to me"?

  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Thumbs down Why don't QT Designer layouts "make sense to me"?

    Hello hello hello ...

    I kind of realise that the title of this thread is (potentially) somewhat provocative seeming. Good.

    I've been doing forms, screens, html and gui programming for more than 20 years and until now, I thought I'd see all the ways someone could make a visual forms designer work. I've never until now seen a visual design tool that doesn't show or allow me to manipulate "flows" and "stacks" (or layouts). On _some_ level.

    On a different topic someone mentioned that "ranting about" something would not get it fixed. That's kind of sad if one is working with a market(?) oriented organisation. It is a pretty cool answer if you are into totalitarian, hierarchical, fascist or (the most likely) STRESS-ed organisational structures. (Ah ha ... I'm not too dumb; I believe I 'get' the human dimension here).

    Hence ... with higher education bits of toilet paper and 20 years experience with flows, stacks, swing and forms, (including HTML and CSS3) and layout design; 'WHY' do I find QT Designer layout user interface to be 'out of reach'? Are you targeting people with 120+ IQ-s?!!

    The question is not about 'me' it is about making a new (and potentially valuable) technology USE-ful and ACCESS-ible for programmers. Sorry 'folk', if there is a time that I know there's a "challenge": with a HIE (human interface experience) for the tool I'm using.

    When that tool is supposed to be SOLVING the problem ... Consider a base case study.

    • Window [QMainWindow]
      • QMenuBar
      • QWidget
      • QStatusBar


    Actually I have a desired 'result' ... What bites me at this simple, basic level is why is QMainWindow _not_ a vertical layout? (Sorry if this seems esoteric to the support and design decision makers; And ...) If I can ...

    If I can ... at least appreciate the issues involved here about stressed support people; that usually means 9 others are walking away. For me (dunno about others) I sense that Layouts are something like 'behaviours' added to a GUI (deliverable). Yes/No(??)

    I have experimented -- It is easier to just write source code (C++ or Python) -- Who needs 'MOC' when the interface requires 3 hours to accomplish 30 min. editing?! (that's rhetorical) .

    I doubt that the QT Designer intention was to make me design GUI-s with source code or with XML.

    For 'me' just needs to functional and effective. For programming, no one needs QT to be 'special'. For some others who are not using QT Designer (I'll bet); they may want colours an gloss. What have these folk designed and implemented? Believe in skill (and not in your management, family or creditors).

    Thanks for listening, salam ...

    .W.
    Last edited by aplatypus; 20th May 2010 at 17:13.

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

    Default Re: Why don't QT Designer layouts "make sense to me"?

    Qt offers three basic layouts - horizontal, vertical, and grid. All are embeddable within one another.

    If none of these or their combinations are sufficient, you can write your own.

    The differences between this any any other layout management system (like Java's, for example) are trivial.

    What is it that's difficult to understand?

  3. #3
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Why don't QT Designer layouts "make sense to me"?

    To be fair, I have seen numerous questions from people struggling with layouts, usually along the lines of 'why does my widget not resize when I expand the main window/container?'

    They typically have not grasped the difference between associating a layout with a container and having it inside one.

    The way QT Creator works does not help with this.

    When editing a UI file I think that it is quite reasonable to assume that all you need to do is pick a layout from the list and drop it into the area you want a Layout Manager for. This ofcourse does not work as the layout itself never gets resized, only the container does....
    Last edited by JD2000; 20th May 2010 at 20:41.
    Got to keep the loonies on the path ...

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

    Default Re: Why don't QT Designer layouts "make sense to me"?

    Quote Originally Posted by aplatypus View Post
    Hence ... with higher education bits of toilet paper and 20 years experience with flows, stacks, swing and forms, (including HTML and CSS3) and layout design; 'WHY' do I find QT Designer layout user interface to be 'out of reach'?
    The answer is very simple. You are just used to some other approach and if you have been using it for the last 10 years it's hard for you to switch to some other approach. You just expect Qt to work the same way other things you used work. Trust me, using layouts is trivial once you stop thinking about flows, stacks and other clever terms and just focus on what should be on the right side of what else and what components should grow if given such opportunity and which shouldn't. For standard Qt layouts this is enough.

    Actually I have a desired 'result' ... What bites me at this simple, basic level is why is QMainWindow _not_ a vertical layout? (Sorry if this seems esoteric to the support and design decision makers; And ...) If I can ...
    QMainWindow doesn't enforce any layout apart the fact that the menu bar is on the top of the window and the status bar is on the bottom of the window but if you don't like it, you can just subclass QWidget and put the status bar on top and the menu on the right

    As for the layout of the contents (so called "central widget"), QMainWindow doesn't care - you can use any layout you want.

    For me (dunno about others) I sense that Layouts are something like 'behaviours' added to a GUI (deliverable). Yes/No(??)
    Not really. Size policies are more about behaviours. Layouts (at least the default ones) are mainly about relative position of objects.

    I have experimented -- It is easier to just write source code (C++ or Python) -- Who needs 'MOC' when the interface requires 3 hours to accomplish 30 min. editing?! (that's rhetorical) .
    Actually MOC has nothing to do with GUI, you probably meant UIC. But let's skip that and make a contest. I bet I can prepare a gui of your choice in Designer faster than you can implement it in hand written code. Of course I'm only talking about positioning objects and their behaviour when things such as window size, font size or language change and only using widgets that are accessible in Designer. Are you in?

    If you have some specific problems with your GUI I'm sure you we help you push matters further.
    Last edited by wysota; 20th May 2010 at 23:42.
    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.


  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Why don't QT Designer layouts "make sense to me"?

    I hope you feel better now.

    There were two questions you posed:
    Why don't QT Designer layouts "make sense to me"?
    Despite the time and effort you put into your post I think it remains really quite difficult to answer this question. It seems that you are expecting Qt to behave like some other tool you have used in the past and are unable to leave that baggage at the door.

    You also seem to be labouring under the mistaken impression that QtCentre is some Nokia-funded support organisation.

    why is QMainWindow _not_ a vertical layout?
    The main widgets do not have a default layout because, and this might come as a shock to you, it is more flexible to allow the designer to chose the layout from among a set of options (SixDegrees points them out). If pressing a single toolbar icon in Designer (two clicks if you count selecting the window first) is too much effort to get your QMainWindow with vertical layout then you clearly need to use a tool other than Qt.
    I've never until now seen a visual design tool that doesn't show or allow me to manipulate "flows" and "stacks" (or layouts). On _some_ level.
    I really have _no_ idea what your issue is here. If an out-of-the-box set of layouts that you can apply to widgets, nest, and manipulate through a GUI designer and code is not adequate then I cannot help.
    Last edited by ChrisW67; 21st May 2010 at 01:20. Reason: Fixed fat-handed typing

  6. #6
    Join Date
    Nov 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Why don't QT Designer layouts "make sense to me"?

    I also feel the same as the original poster. Similar bio.
    How can I tell the layout that manages my widgets properly in designer to be dynamically resized by the enclosing window ?

  7. #7
    Join Date
    Nov 2010
    Posts
    97
    Thanks
    6
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Why don't QT Designer layouts "make sense to me"?

    Quote Originally Posted by aplatypus View Post
    Hence ... with higher education bits of toilet paper and 20 years experience with flows, stacks, swing and forms, (including HTML and CSS3) and layout design; 'WHY' do I find QT Designer layout user interface to be 'out of reach'? Are you targeting people with 120+ IQ-s?!!
    BWAHAHAHAHAHAH!!!! 120???

    I do have to admit to initially not understanding the designer, being more used to things like glade, but not understanding layouts??? And it took one run through the overview to get a handle on the designer. Like others say, it's simply that Qt seems to differentiate between a layout being 'in' a widget and being 'associated' with one. I don't see the use of such a distinction but it isn't hard to figure out.

    So yeah, if your IQ is really < 120 maybe you'd be better off in the police force: http://www.brainbasedbusiness.com/20...ed_125_on.html

    Sorry, if you're going to complain that something as basic as layouts is set up for people that are too smart, you make yourself free game. 120 isn't even high. GWB was said to have that much.

  8. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Why don't QT Designer layouts "make sense to me"?

    pixelpartner: Apply a layout to the main window; there are options in the right-click menu and buttons on the main Designer tool bar for doing this, and they become active when the main window (or main widget), i.e not a subordinate widget, is selected.

    Open Qt Assistant, search for "quick start", open "A Quick Start to Qt Designer", read and work through the first two thirds of the article. For more read "Using Layouts in Qt Designer." If there is still something you don't understand then please ask.

Similar Threads

  1. Replies: 4
    Last Post: 18th April 2010, 01:37
  2. "make install" and "make clean" on Windows for Qt
    By Berberis in forum Installation and Deployment
    Replies: 0
    Last Post: 30th November 2009, 00:02
  3. Replies: 0
    Last Post: 22nd January 2009, 19:15
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  5. Setting QFrame palette in Designer doesn't "stick"
    By Doug Broadwell in forum Qt Tools
    Replies: 1
    Last Post: 9th September 2007, 22:44

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.