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

regression in QtEmbedded: null QStringList join with null seperator to an empty string, should be null.

XMLWordPrintable

    • 77b913e5f8fa93c62a245

      This problem was introduced in 4.6.2 (461 is fine) and it happens only against qt-embedded.
      code to reproduce the problem:

      #include <QtGui>
      
      int main(int argc, char** argv) {
              QApplication app(argc, argv);
              QStringList list;
              QString str = list.join(QString());
              qWarning() << str.isNull();
              app.exec();
      }
      

      In 4.6.1 or 4.6.2-x11, the result is true, but against qte-4.6.2, the result is false.

      This causes a logic problem in src/gui/embedded/qmousetslib_qws.cpp:

          devName = args.join(QString());
          if (devName.isNull()) {
              const char *str = getenv("TSLIB_TSDEVICE");
              if (str)
                  devName = QString::fromLocal8Bit(str);
          }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tvete Paul Olav Tvete
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes