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. Minior ethic "issue"
Forum Updated to NodeBB v4.3 + New Features

Minior ethic "issue"

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 273 Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    The attached entries of Name / Address are an result of SAME process.
    One entry is "right" oriented and the other "left". WHY?

    c8c77391-8a2f-459d-832a-ec126f0afee4-image.png

    Pl45m4P V 2 Replies Last reply
    0
    • A Anonymous_Banned275

      The attached entries of Name / Address are an result of SAME process.
      One entry is "right" oriented and the other "left". WHY?

      c8c77391-8a2f-459d-832a-ec126f0afee4-image.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @AnneRanch said in Minior ethic "issue":

      One entry is "right" oriented and the other "left". WHY?

      You can set the alignment of text in QLineEdit.

      • https://doc.qt.io/qt-6/qlineedit.html#alignment-prop

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      A 1 Reply Last reply
      1
      • A Anonymous_Banned275

        The attached entries of Name / Address are an result of SAME process.
        One entry is "right" oriented and the other "left". WHY?

        c8c77391-8a2f-459d-832a-ec126f0afee4-image.png

        V Offline
        V Offline
        Volker75
        wrote on last edited by
        #3

        @AnneRanch I guess the reason for this is, that the address is more a number than a string. And numbers are often right aligned; like in a spread sheet for example.

        1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @AnneRanch said in Minior ethic "issue":

          One entry is "right" oriented and the other "left". WHY?

          You can set the alignment of text in QLineEdit.

          • https://doc.qt.io/qt-6/qlineedit.html#alignment-prop
          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by Anonymous_Banned275
          #4

          @Pl45m4

          The title should have been

          "Minor ethic issue"
          minor as in irrelevant .

          This post was not about "how to set aliment " but since you brought it up

          here is the code

            result_name = Get_("hci0",result ,"hci0");
              if(!result_name .contains(" FAILED "))
              {
              **ui->lineEdit_10->setAlignment(Qt::AlignRight);**
              ui->lineEdit_10->setText(result_name );
              ui->textEdit->append(result_name );
              ui->textEdit_3->append(result_name );
              }
              else
              {
                  ui->textEdit_4->append(result_name);
              }
          

          ... and the result is still same - the text is LEFT ALIGNED...

          BUMMER
          I changed "build only changed files " and it does not ...
          I had to run "build" to get the "right align " to take...

          1 Reply Last reply
          0

          • Login

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