Results 1 to 2 of 2

Thread: Calculator Builder Example

  1. #1
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Calculator Builder Example

    Hi,

    i took a look at the Calculator Builder Example. I expect the calculatorbuilder.exe to load the form that is in calculatorbuilder.exe/forms/calculatorform.ui

    Qt Code:
    1. QFile file(":/forms/calculatorform.ui");
    To copy to clipboard, switch view to plain text mode 

    But when I slightly modify the .ui file (e.g. change the label text) nothing changes. The form is not loaded. What am I getting wrong?

  2. #2
    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: Calculator Builder Example

    The ui is not loaded from the file, but from a resource that is compiled into the application executable (hence the colon in the file name). You have to rebuild the application making sure the resource is refreshed if you want to see changes.

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

    janus (19th April 2008)

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.