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

Text un-ordering on QPushButton if " x " surrounded by numbers.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.6.3
    • None
    • Windows 7

    Description

      I am trying to set the text of a QPushButton to show dimensions. Whenever it is in the format "123 x 321" the ordering of the text gets changed around to "x 321 123". However if I remove the spaces around the x, and have the format "123x321", it displays correctly.

      The code I am using...

      QString text = QString::number(width) + " x " + QString::number(height);
      ui_>customDimensionButton_>setText(text);

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            metallic_cloud Chris Dempsey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes