View Poll Results: Do you use QT Designer?

Voters
69. You may not vote on this poll
  • Yes, all the time! I cant live without it!

    32 46.38%
  • Sometimes, when I feel like it...

    16 23.19%
  • Only to visualize the final product before coding it.

    5 7.25%
  • Hell no! I can code it myself!!

    16 23.19%
Results 1 to 20 of 48

Thread: QT Designer? Coding by hand?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: QT Designer? Coding by hand?

    Quote Originally Posted by lewis
    well, I suppose its stupid to only allow 2mins to create a poll...
    Usually people create polls when opening the thread and not after a meditation in a bathroom...

    What if you really have to go to the bathroom!?
    Do it before opening a thread with a poll...


    About the issue with Designer. I think Designer is there for you to use it. It generates a very good code, you won't be able to write a better one yourself. And using it doesn't mean you don't know how to code a widget manually, but saves a lot of time.

    Maybe my opinion will sound a bit too strong, but I think that lame people are not the ones using Designer (because "real programmers code everything themselves"), but the ones not using it. Otherwise we'd be all stuck with binary code, perforated cards or in the best case assembly.

    To be honest I am thinking of writing a set of macros which would relieve me of writing the same standard things all the time (what a waste of time it is), like:
    Qt Code:
    1. #include <QWidget>
    2. #include <QApplication>
    3.  
    4. int main(int argc, char **argv){
    5. QApplication app(argc, argv);
    6. QWidget wgt;
    7. wgt.show();
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 

    It'd be better to write for example:
    Qt Code:
    1. #include <QWidget>
    2. Q_START
    3. QWidget wgt;
    4. wgt.show();
    5. Q_END
    To copy to clipboard, switch view to plain text mode 

    There are many things like the one above... Qt already has some nice things like forever() or foreach() and of course Tulip (although real h4x0rs would say they always implement their own vectors or lists... because using COTS solutions is lame ).

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    Back in the 1.x days, I used Qt Architect. But as I got used to Qt I started doing all my layouts by hand. In 2.x I tried using Designer, but I didn't like it, and so stuck with hand coding. I improved enough in 3.x that I started using it. But I only used it to generate boilerplate code, which I would cut-n-paste into my own code.

    In 4.x, however, I'm using Designer for all my layout, even my menus. I'll still hand code tiny layouts, however.

  3. #3
    Join Date
    Jul 2006
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    When I started with Qt, I always used Designer, because I thought coding a GUI by hand would be very difficult. The bad part was that every time I wanted to subclass a widget to add some functionality, I had to do a lot of work to make it play well with Designer. That's when I started reading the GUI code in the Qt examples and I noticed it wasn't that difficult. Also, I noticed that the GUI behaves more the way I want it when I code "by hand". With the arrival of Qt4 it has become even easier, because they simplified the layout classes.

    So maybe it takes me a bit more time, but I prefer coding by hand.

  4. #4
    Join Date
    Jan 2006
    Posts
    371
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    I started very recently using the designer for main windows as well. With Qt4 and the auto connection mechanism, the code you need to write for making a usable application is much smaller. This leads to less mistakes and clearer code.

  5. #5
    Join Date
    Jul 2006
    Posts
    79
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    Quote Originally Posted by cristianbdg
    When I started with Qt, I always used Designer, because I thought coding a GUI by hand would be very difficult. The bad part was that every time I wanted to subclass a widget to add some functionality, I had to do a lot of work to make it play well with Designer. That's when I started reading the GUI code in the Qt examples and I noticed it wasn't that difficult. Also, I noticed that the GUI behaves more the way I want it when I code "by hand". With the arrival of Qt4 it has become even easier, because they simplified the layout classes.

    So maybe it takes me a bit more time, but I prefer coding by hand.
    so there are people don't using the designer..

    i am using the designer.
    first to have a concept: how will the program look like and how do you use it.. it is easier to think about the program when you see the gui. you know which elements you need etc..

    second it's much easier to start coding for me.

    regards..
    aman..

  6. #6
    Join Date
    May 2006
    Posts
    55
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    Hi

    Quote Originally Posted by wysota
    ...

    About the issue with Designer. I think Designer is there for you to use it. It generates a very good code, you won't be able to write a better one yourself. And using it doesn't mean you don't know how to code a widget manually, but saves a lot of time.

    ...
    I can not second you about "no better code yourself" : there are unuseful and annoying lines especially for SizePolicy's and fonts where the default are better than explicit settings that, more often than never, are unwelcome.

    I don't want to tag myself as reactionnary, so I have to say that even if you have to get used to QtDesigner before you can feel how to do what you want, it is better than many gui designer I've used so far.
    Still, I am suspectful towards "clickodroms" for such things,
    I prefer powerful layouts that permit "straightforward" tweaking (they achieve flexibility with as few (orthogonal) parameters as possible, for example).
    But for some sub-parts specialized of a rich panel QtDesigner can be ok. But integration of parts is easier for me by hand.
    By the way, the possibility to change a "common" property among a multiple selection would be convenient : selecting several widget that are not all in the same "containers" and are not all the children of the topmost widget and being able to set the font boldness at once, these kind of thing, would be very practical. To be constructive
    My2c.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Designer? Coding by hand?

    Quote Originally Posted by lauranger
    By the way, the possibility to change a "common" property among a multiple selection would be convenient
    Yes, hopefully it will work soon: http://www.trolltech.com/developer/t...entry&id=87181

Similar Threads

  1. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  2. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28
  3. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 14:01
  4. qt4.1.1 designer
    By raphaelf in forum Qt Tools
    Replies: 10
    Last Post: 26th February 2006, 16:56
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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.