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
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: QT Designer? Coding by hand?

    Quote Originally Posted by wysota View Post
    Resources are compiled into the binary and occupy the memory all the time.
    Really? I thought there is a way to unload them and free the memory. Q_CLEANUP_RESOURCE()? I never tried that.

    Quote Originally Posted by wysota View Post
    Hmm... so how do you want to access the data from code if it is only to be available to the automated code? Or maybe I don't understand what you mean by "gui creation" - for me setupUi() does that.
    Ah yes, I really don't meant gui creation, but hmm, how do I call it...interface dispatch? All in all I am trying to find a better way to give classes a better way to access the designer generated objects. The designer is a fine tool, I just think the way its code has to be connected to the main program code sucks.

    Quote Originally Posted by wysota View Post
    So it does the same qFindChildren() does, only on the separate object hierarchy, right?
    Actually yes, the returned object should be different. Else if you want to keep the method to encode hierarchy informations in the object name, you probably could even use qFindChildren the way it is now. But I don't think this 'reuse' would be good.

    Quote Originally Posted by wysota View Post
    But then you could only use it in a class generated by Designer.
    This I don't understand. Why?

    Quote Originally Posted by wysota View Post
    According to me the thing you want is a nice candidate for a completely separate component that can be implemented using Qt but not necessarily inside Qt.
    I am thinking how I could create such a component. I think I could create a wrapper around designer generated classes, which implements parts of the interface I described. But all depends on hierarchy information somewhere in the designer created objects. I might be willing to swallow the bitter pill and parse the object names, but then I had to set them manually. And this makes IMHO all the work pointless.

  2. #2
    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 Kumosan View Post
    Really? I thought there is a way to unload them and free the memory. Q_CLEANUP_RESOURCE()? I never tried that.
    This won't work for resources compiled into the application as they are part of application memory space. This macro only applies to plugins.

    Ah yes, I really don't meant gui creation, but hmm, how do I call it...interface dispatch?
    How would you define when "interface dispatch" ends? IMO there is no way to do that, especially if you allow subclassing.

    This I don't understand. Why?
    Because it wouldn't be supported by Qt core, only by the code Designer generates (just like you don't use "setupUi" with hand written classes).


    I am thinking how I could create such a component. I think I could create a wrapper around designer generated classes, which implements parts of the interface I described. But all depends on hierarchy information somewhere in the designer created objects. I might be willing to swallow the bitter pill and parse the object names, but then I had to set them manually. And this makes IMHO all the work pointless.
    IMO it should be completely separate from Designer with a separate tool (or two - "designer" and "compiler") handing it. Then you could incorporate it into QMake.

  3. #3
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: QT Designer? Coding by hand?

    Quote Originally Posted by wysota View Post
    This won't work for resources compiled into the application as they are part of application memory space. This macro only applies to plugins.
    Good to know.

    Quote Originally Posted by wysota View Post
    How would you define when "interface dispatch" ends? IMO there is no way to do that, especially if you allow subclassing.
    Yeah, probably only through evil hacks. But I don't like to think about code with never will be too deeply now.

    Quote Originally Posted by wysota View Post
    Because it wouldn't be supported by Qt core, only by the code Designer generates (just like you don't use "setupUi" with hand written classes).
    The QDesignerObject I meant is a simple container class, which is generated by designer generated code. All it has to do is implement a well defined interface. It could even be a subclass of QObject, though this would be overkill. But even if it is nowhere else supported in Qt, I would only need the header file of the interface. Maybe I am a bit blockheaded at the moment, but I cannot follow you here.

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.