Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Perhaps a qt5.1 bug
Qt 6.11 is out! See what's new in the release blog

Perhaps a qt5.1 bug

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 936 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    acmezger
    wrote on last edited by
    #1

    with Qt5 when in a ui file for a property an empty string is set:
    then calling the designer will trigger my appropriate routine in my custom widget
    however when loading the file with the QuiLoader the property write routine will not be called.
    In Qt4.8.4 the routine was called.
    Is this a new feature (unwanted) or a bug or one has to do something special ?

    more precise description:

    I have a designer plugin with custom widgets. In one of my widgets a string property is initialized with a non empty string and write and read routines are defined for it.
    I call the designer and when I drag my custom widget to the window I want to design, at that moment the property will have my default string.
    In case I change that string or empty it and then create the ui file, the property in the ui file has the value I put in (empty or not) while the write routine is automatically called
    When I call the designer again with the ui file, that property has therefore the right value (empty or not)
    However when in my application program, I call the QuiLoader with the ui file , then for the non empty string the write routine is not called int Qt5.1 as was in Qt4.8.4 and previous, but for a non-empty string the routine gets called normally.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This sound like a regression, you should ask on the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)

      Maybe first check the "bug report system":http://bugreports.qt-project.org/issues/ to see if someone else came across this problem.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved