Results 1 to 5 of 5

Thread: ui label list not updating

  1. #1
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default ui label list not updating

    Hi all,

    I posted about this problem on another thread, which seemed to resolve itself in the end when I switched between debug and release builds (on Windows). I'm now at home on Mac OSX with QT creator 2.0.1 and the problem has come back and won't go away.

    I have labels created in the design tab which don't appear to have updated when I try and access them in my main program, i.e. ui->label_X->>do_something. I've tried switching between debug and release builds, clean all, rebuild all, build all etc and it doesn't make them appear. They are definitely there on the ui, and are listed in the XML code as well, so where am I going wrong? Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: ui label list not updating

    in such cases its best if you post a small zip with a sample project that reproduces the problem, so that other users can open and try it, and play with the configuration.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: ui label list not updating

    Quote Originally Posted by high_flyer View Post
    in such cases its best if you post a small zip with a sample project that reproduces the problem, so that other users can open and try it, and play with the configuration.
    I think I've found out the problem, I was building shadow builds. Ever since I've turned that off I've not had a problem, does that sound like an explanation?

  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: ui label list not updating

    No. It sounds like switching from shadowed to non-shadowed has caused something to be rebuilt that was not being built before. Is the UI file listed in your project's PRO file under FORMS?

  5. #5
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: ui label list not updating

    Quote Originally Posted by ChrisW67 View Post
    No. It sounds like switching from shadowed to non-shadowed has caused something to be rebuilt that was not being built before. Is the UI file listed in your project's PRO file under FORMS?
    It's there now and I believe it was there before.

Similar Threads

  1. List View with sections for alphabetialy sorted list
    By woodtluk in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2010, 11:50
  2. Replies: 0
    Last Post: 4th November 2009, 16:13
  3. updating .rc file
    By navi1084 in forum Qt Programming
    Replies: 0
    Last Post: 9th October 2008, 09:53
  4. updating database
    By locus in forum Qt Programming
    Replies: 3
    Last Post: 27th January 2007, 05:54
  5. label
    By mickey in forum Qt Programming
    Replies: 10
    Last Post: 8th June 2006, 18:58

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.