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

QApplication::layoutDirection always returns Qt::LeftToRight on Symbian

    XMLWordPrintable

Details

    • 2

    Description

      QApplication::layoutDirection seems to be always returning Qt::LeftToRight on Symbian. Attached is a screenshot taken when running the following application with System layout direction set to RTL.

      #include <QtGui>
      #include <QtCore>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);

      QMainWindow mw;
      QLabel l(&mw);
      QString dir;

      if (a.layoutDirection() == Qt::RightToLeft)

      { dir = "Direction=Qt::RightToLeft"; }

      else

      { dir = "Direction=Qt::LeftToRight"; }

      l.setText(dir);
      l.setGeometry(0,30,300,30);
      l.show();
      mw.showMaximized();

      return a.exec();
      }

      Attachments

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

        Activity

          People

            ahaapane Aapo Haapanen (closed Nokia identity) (Inactive)
            latej Lauri Jääskelä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes