Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41886

uic: When you set a space " " as "text“ property, code assigning an empty string is generated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.4.0 Alpha
    • Fix Version/s: None
    • Component/s: Build tools: uic
    • Labels:
      None
    • Environment:
      Windows7 64 Bit. Qt 5.3.2 .Vs2010.

      Description

      When I set a QPushButton's text property to " " with Qt Creator. And then I compile the project.I use qDebug()<<ui->pushButton->text(),it prints "" but not " " with a space in it.

        Attachments

        1. qtbug41886_diag5.diff
          0.5 kB
          Friedemann Kleint
        2. qtbug41886.ui
          1.0 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            chenxiyu chenxiyu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes