Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to enable word wrap on QRadio button ?
Forum Updated to NodeBB v4.3 + New Features

how to enable word wrap on QRadio button ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.1k Views
  • 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    I am using QRadiobutton.

    i.e.
    ui->radioButton_2->setText("Disable");
    ui->radioButton_1->setChecked(true);

    in this radio button my text is cut

    i.e. Disab

    How to solve this problem ?

    jsulmJ DiracsbracketD 2 Replies Last reply
    0
    • Q Qt embedded developer

      I am using QRadiobutton.

      i.e.
      ui->radioButton_2->setText("Disable");
      ui->radioButton_1->setChecked(true);

      in this radio button my text is cut

      i.e. Disab

      How to solve this problem ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-embedded-developer said in how to enable word wrap on QRadio button ?:

      How to solve this problem ?

      Make sure the radio button is big enough? I guess you don't use a layout?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Qt-embedded-developer said in how to enable word wrap on QRadio button ?:

        How to solve this problem ?

        Make sure the radio button is big enough? I guess you don't use a layout?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @jsulm i want to show there like

        "Disa...."

        if my word not fit in it .

        jsulmJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @jsulm i want to show there like

          "Disa...."

          if my word not fit in it .

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-embedded-developer OK, I misunderstood your requirement. Not sure there is a simple way to do this.
          Take a look at https://doc.qt.io/qt-5/qfontmetrics.html#elidedText

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • Q Qt embedded developer

            I am using QRadiobutton.

            i.e.
            ui->radioButton_2->setText("Disable");
            ui->radioButton_1->setChecked(true);

            in this radio button my text is cut

            i.e. Disab

            How to solve this problem ?

            DiracsbracketD Offline
            DiracsbracketD Offline
            Diracsbracket
            wrote on last edited by
            #5
            This post is deleted!
            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