Results 1 to 5 of 5

Thread: Add nonGUI classes to Qt Designer UI's

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Add nonGUI classes to Qt Designer UI's

    Hello,

    I would like to add a nonGUI class to an application developed with Qt Designer. I can not add it to 'form1.h', generated by Qt Designer, and I don't think that I should add it to the XML file. If I set up a custom widget under , it asks me for a graphical representation of the class.

    What is the recommended way to do this?

    Thanks...

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Add nonGUI classes to Qt Designer UI's

    I don't know what you mean .
    I mean, how did you exactly developed an entire app with Designer alone? How big is this application?

    I'm sure you have other classes, like a subclass of the UI class generated by designer.

    and I don't think that I should add it to the XML file
    No, don't even try that.

  3. The following user says thank you to marcel for this useful post:

    pbro (15th May 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Add nonGUI classes to Qt Designer UI's

    Quote Originally Posted by pbro View Post
    What is the recommended way to do this?
    http://doc.trolltech.com/4.2/designe...component.html

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

    pbro (15th May 2007)

  6. #4
    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: Add nonGUI classes to Qt Designer UI's

    Rather: http://doc.trolltech.com/3.3/designer-manual-6.html

    @pbro:
    Note that Qt Designer is not an IDE, only a layout editor.

  7. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Add nonGUI classes to Qt Designer UI's

    Quote Originally Posted by jacek View Post
    Oh, right... sorry

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.