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. How to Set QCombobox Elide Text ??
Forum Updated to NodeBB v4.3 + New Features

How to Set QCombobox Elide Text ??

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 551 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by
    #1

    Qt 5.4 +

    Windows 8.1 64 Bit /
    Linux 64 Bit /

    I am using it.

    QComboBox is in the dialog.
    Elide is applied to the drop-down list of QCombobox, if the dialog is small

    Text ... comes out in Text format,

    The currently selected text, the current text of QCombobox, shows all text even if the dialog is small.

    How can Current Text also come out in Text ... Text format?

    1 Reply Last reply
    1
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Why do you need it? If you want to elide text then take a look at QFontMetrics::elidedText()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Also it seems to already does it ?
        alt text

        Maybe not in Qt 5.4 as thats is stone age old :)
        https://wiki.qt.io/Qt_5.4_Release

        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