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. QCompleter with a QLineEdit into QGraphicsScene

QCompleter with a QLineEdit into QGraphicsScene

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

    Hi everyone,

    I want to use the QCompleter with a QLineEdit, but into an QGraphicsScene, All works nice when the scale are 1 :
    alt text

    But if I change the scale :

    • The scale of listview Completer doesnt change.
    • The position move anywhere.

    alt text

    Why, Do you have an idea ?

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

      Hi,

      Which version of Qt is it ?
      On which platform ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • cfdevC Offline
        cfdevC Offline
        cfdev
        wrote on last edited by
        #3

        Tested with Qt 5.15.2 on MSWindows 10 and Ubuntu 20.04 LTS The problem is the same.
        I forgot to say, I use QCompleter normally through the QLineEdit.

        m_textLineEditWidget->setCompleter(completer);
        

        I think that the QListView used for completer is not managed by the Scene, and it s for that the scale of it doesnt operate.
        Probably to fix it, I will need to create a ListView manually and Add it to the scene. :-/

        What do you think ?

        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