Results 1 to 4 of 4

Thread: Dispaly default values of widgets from server in dynamic form loaded through QUiLoa..

  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Dispaly default values of widgets from server in dynamic form loaded through QUiLoa..

    Hi,

    I have two .ui files. I am loading these dynamically through QUiLoader. Now I want to display some default values in the widgets in these forms. But the problem is what values to be displayed will come from the server. So is it possible to set values this way dynamically? I know I could use the findChild<>T() but in that case I have to know all the children in the forms and there Object names also. But I want one generic Qt program which can load any .ui file dynamically. So how can I set the deafult values coming form the server without including this in the Qt App?

  2. #2
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Dispaly default values of widgets from server in dynamic form loaded through QUiL

    Bump . . .

  3. #3
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Dispaly default values of widgets from server in dynamic form loaded through QUiL

    One more bump ...

  4. #4
    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: Dispaly default values of widgets from server in dynamic form loaded through QUiL

    10 points for the oddest design I've seen yet.

    If you want default values in your form and you don't wan the client to have to know the form intimately then you can only do it at the server. One way or the other some code is going to have to know where to put the value.

Similar Threads

  1. Replies: 4
    Last Post: 9th August 2012, 21:08
  2. model and default columns values
    By m15ch4 in forum Qt Programming
    Replies: 0
    Last Post: 8th May 2011, 21:57
  3. Default values in QXmlSchemaValidator
    By mortalisk in forum Qt Programming
    Replies: 0
    Last Post: 3rd September 2010, 16:11
  4. Event when application form has loaded? (onload)
    By AnAx in forum Qt Programming
    Replies: 3
    Last Post: 15th May 2010, 15:23
  5. C++ and default values for functions
    By guestgulkan in forum General Programming
    Replies: 4
    Last Post: 2nd January 2007, 22:53

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.