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. QTextEdit / QLineEdit with tag item
Forum Updated to NodeBB v4.3 + New Features

QTextEdit / QLineEdit with tag item

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.3k 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.
  • D Offline
    D Offline
    dridk2
    wrote on last edited by
    #1

    I m looking for a widget to display tag with cross icon to remove item. Does someone already make it ?

    0_1534422256754_19a49698-4a52-4e7e-84cf-965492a73c7d-image.png

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

      Hi
      I have not seen a premade widget but easy to build using
      http://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dridk2
        wrote on last edited by
        #3

        But it's not editable

        mrjjM 1 Reply Last reply
        0
        • D dridk2

          But it's not editable

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dridk2
          What is not editable ?

          JonBJ 1 Reply Last reply
          0
          • mrjjM mrjj

            @dridk2
            What is not editable ?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @mrjj
            I suspect that the user intends each of those to be editable labels/line edits --- the user can type in tag text, and he can destroy the whole tag. (Though he does not say, and only asks about the "X") .

            mrjjM 1 Reply Last reply
            1
            • JonBJ JonB

              @mrjj
              I suspect that the user intends each of those to be editable labels/line edits --- the user can type in tag text, and he can destroy the whole tag. (Though he does not say, and only asks about the "X") .

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JonB
              Well a widget +layout + a button for close and
              a QLabel with Qt::TextEditable (TextInteractionFlags)
              should do it.

              1 Reply Last reply
              3

              • Login

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