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 display QPushButtons in the line edit of QComboBox
Forum Updated to NodeBB v4.3 + New Features

How to display QPushButtons in the line edit of QComboBox

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 134 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.
  • A Offline
    A Offline
    Avneet Dhaliwal
    wrote on last edited by
    #1

    When the user enters text in QLineEdit, the completer should display related text and once the user selects that text, a QPushButton containing that text should display in QLineEdit of QComboBox followed by the cursor to enable entering more text. Now, if the user writes some more text and the completer displays some matching text, pressing enter it would create another QPushButton of that text next to the previous QPushButton and followed by the cursor to write more text.
    I tried to do this by setting the layout in the lineedit and adding widgets onto it and then trying to move the cursor but it didn't move.
    So, is there any way how could I achieve this functionality?Image.PNG

    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