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. what is way to represent large string in fixed width label ?
Forum Update on Monday, May 27th 2025

what is way to represent large string in fixed width label ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 250 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 27 Jan 2021, 10:23 last edited by
    #1

    i need to represent large string name like below
    if string name is "1234567890" then in label i need to show

    "123456...."

    If anyone know how to represent large string like above then let me know

    J 1 Reply Last reply 27 Jan 2021, 10:28
    0
    • Q Qt embedded developer
      27 Jan 2021, 10:23

      i need to represent large string name like below
      if string name is "1234567890" then in label i need to show

      "123456...."

      If anyone know how to represent large string like above then let me know

      J Offline
      J Offline
      JonB
      wrote on 27 Jan 2021, 10:28 last edited by JonB
      #2

      @Qt-embedded-developer
      https://itqna.net/questions/14614/it-possible-use-elide-qlabel
      https://doc.qt.io/qt-5/qtwidgets-widgets-elidedlabel-example.html
      https://wiki.qt.io/Elided_Label

      Q 1 Reply Last reply 27 Jan 2021, 11:59
      7
      • J JonB
        27 Jan 2021, 10:28

        @Qt-embedded-developer
        https://itqna.net/questions/14614/it-possible-use-elide-qlabel
        https://doc.qt.io/qt-5/qtwidgets-widgets-elidedlabel-example.html
        https://wiki.qt.io/Elided_Label

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on 27 Jan 2021, 11:59 last edited by
        #3

        @JonB Thank you !

        1 Reply Last reply
        0

        1/3

        27 Jan 2021, 10:23

        • Login

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