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. QAbstractButton RightToLeft text behavior

QAbstractButton RightToLeft text behavior

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 493 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.
  • T Offline
    T Offline
    TBSeb
    wrote on last edited by
    #1

    Hi everyone, i'm using Qt 5.4.0, and i'm surprised by a behavior.

    here's a simple code:
    qApp->setLayoutDirection(Qt::RightToLeft);
    ui->label->setText(tr("-20"));
    ui->pushButton->setText(tr("-20"));

    And here is the display result:

    • label: -20

    • pushButton: 20-

    Does anyone knows something about this special abstractButton setText behavior?

    (my wish is to obtain the label behavior)

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Thank you for the hint. I filed a bugreport, QTBUG-59807.

      1 Reply Last reply
      1

      • Login

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