Giter Club home page Giter Club logo

Comments (11)

markotoplak avatar markotoplak commented on September 16, 2024

Works properly for me (Linux, Qt 5.15.4). Please report your OS and Qt versions (you can also experiment slightly with the latter).

from orange-widget-base.

markotoplak avatar markotoplak commented on September 16, 2024

Interestingly, your screenshot shows that there was one instant when the whole text was selected and then it changed. :)

from orange-widget-base.

PrimozGodec avatar PrimozGodec commented on September 16, 2024

I can reproduce it on macOS Big Sur with both qt versions: 5.12, 5.15
For me it does not look that we are doing something wrong with listView -- it looks like more Qt issue

from orange-widget-base.

PrimozGodec avatar PrimozGodec commented on September 16, 2024

It is definitely PyQt - Qt issue. I can reproduce it in a simple application that does not use any orange widget component.

from PyQt5.QtWidgets import QApplication, QLineEdit

import sys

app = QApplication(sys.argv)

window = QLineEdit()
window.show()  
app.exec()

from orange-widget-base.

janezd avatar janezd commented on September 16, 2024

We can't do anything then, and can close the issue, right?

from orange-widget-base.

markotoplak avatar markotoplak commented on September 16, 2024

We should find the corresponding Qt bug, if it exists, else file one. If the bug appears in pure Qt, we'd need to file a bug to the Qt, else PyQt.

from orange-widget-base.

janezd avatar janezd commented on September 16, 2024

Looks like this? https://bugreports.qt.io/browse/QTBUG-75902

from orange-widget-base.

ajdapretnar avatar ajdapretnar commented on September 16, 2024

Yes, even though the report says "Linux", but I am experiencing it on OSX. But yes, the same thing.

from orange-widget-base.

markotoplak avatar markotoplak commented on September 16, 2024

Ok, so we can't do much about it, and worse, Qt 5.15 might not ever fix the bug. @ajdapretnar or @PrimozGodec, could you check what happens in PyQt6? So that we know what we expect in the future, or even report a Qt bug.

Just install it PyQt6 (to be safe, perhaps a new environment), run the following code, and check how the selection works.

from PyQt6.QtWidgets import *
app = QApplication([])
label = QLineEdit('Hello World!')
label.show()
app.exec()

from orange-widget-base.

ajdapretnar avatar ajdapretnar commented on September 16, 2024

It works very well with PyQt6.

from orange-widget-base.

markotoplak avatar markotoplak commented on September 16, 2024

So we can close this issue for now.

from orange-widget-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.