Results 1 to 4 of 4

Thread: Problem understanding Custom Widget creation

  1. #1
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem understanding Custom Widget creation

    Hi,

    I am newbie to QT Creator. Currently i am trying to accomplish a small application, in which a custom widget is needed. So, i then started looking into tutorials making custom widgets. Now what i don't understand is when i open the newproject with Custom Widget option i don't see any .Ui file where i can make my widget using various designer widgets.

    I have seen the Qt Custom widget example projects in which I see all the files like .h, .cpp, .pro except .Ui. Please guide me in this. ANy help would be greatly appreciated.

    Thank you,

    Baluk

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem understanding Custom Widget creation

    In that example the widget is created in the code -- i.e. the code necessary is not automagically generated by Creator.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem understanding Custom Widget creation

    Thank you for the reply. Yes, i understood that the widget is written in code. But, how can I make the custom widget by drag and droping widgets from Qt desginer because i don't see a .Ui file if I open a custom widget project in Qt creator.

    Thank you,

    Baluk

  4. #4
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem understanding Custom Widget creation

    just in your project add a new Qt Designer Form and choose the widget template, this will make a .ui file that you can edit with the designer by drag-drop widgets

Similar Threads

  1. Dynamic widget creation from an XML-like file
    By ttvo in forum Qt Programming
    Replies: 2
    Last Post: 1st June 2009, 22:15
  2. Problem with custom container widget
    By MrGarbage in forum Qt Tools
    Replies: 4
    Last Post: 25th August 2007, 03:37
  3. Custom widget problem
    By chombium in forum Qt Programming
    Replies: 1
    Last Post: 27th September 2006, 16:41
  4. Replies: 3
    Last Post: 12th April 2006, 08:20
  5. Problem with custom widget
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 15th March 2006, 11:55

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.