Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ComboBox.valueRole is not available. #2

Closed
axionl opened this issue Feb 22, 2020 · 10 comments
Closed

[BUG] ComboBox.valueRole is not available. #2

axionl opened this issue Feb 22, 2020 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@axionl
Copy link

axionl commented Feb 22, 2020

基本信息

操作系统:Arch Linux Latest
image

V2Ray Desktop 版本:tag v1.5.1

V2Ray Desktop 安装方式:Build from source code.

描述问题

Settings and Rules panels are unable to display.

image

image

复现问题的步骤(非常重要)

  1. The QML Debugger Console info:

image

  1. Comment out the valueRole property on ComboBox can display the components, but other calls are obviously broken which does not affect our debugging.

image

  1. I noticed that the valueRole property was introduced in QtQuick.Controls 2.14 (Qt 5.14) but the current build version is also the same.

https://doc.qt.io/qt-5/qml-qtquick-controls2-combobox.html#valueRole-prop

@axionl axionl added the bug Something isn't working label Feb 22, 2020
@Dr-Incognito
Copy link
Owner

Sorry, I cannot reproduce the error.

Screenshot from 2020-02-22 16-32-10
Screenshot from 2020-02-22 16-35-41

@Dr-Incognito
Copy link
Owner

Could you provide the output of pacman -Qs qt5?

As for me, the output is

➜  ~ pacman -Qs qt5
local/qt5-base 5.14.1-2 (qt qt5)
    A cross-platform application and UI framework
local/qt5-declarative 5.14.1-1 (qt qt5)
    Classes for QML and JavaScript languages
local/qt5-location 5.14.1-1 (qt qt5)
    Provides access to position, satellite and area monitoring classes
local/qt5-quickcontrols 5.14.1-1 (qt qt5)
    Reusable Qt Quick based UI controls to create classic desktop-style user
    interfaces
local/qt5-quickcontrols2 5.14.1-1 (qt qt5)
    Next generation user interface controls based on Qt Quick
local/qt5-script 5.14.1-1 (qt qt5)
    Classes for making Qt applications scriptable. Provided for Qt 4.x
    compatibility
local/qt5-svg 5.14.1-1 (qt qt5)
    Classes for displaying the contents of SVG files
local/qt5-tools 5.14.1-1 (qt qt5)
    A cross-platform application and UI framework (Development Tools, QtHelp)
local/qt5-wayland 5.14.1-1 (qt qt5)
    Provides APIs for Wayland
local/qt5-webchannel 5.14.1-1 (qt qt5)
    Provides access to QObject or QML objects from HTML clients for seamless
    integration of Qt applications with HTML/JavaScript clients
local/qt5-webengine 5.14.1-1 (qt qt5)
    Provides support for web applications using the Chromium browser project
local/qt5-x11extras 5.14.1-1 (qt qt5)
    Provides platform-specific APIs for X11

@axionl
Copy link
Author

axionl commented Feb 22, 2020

$ pacman -Qs qt5 | awk 'NR%2' |  awk -F/ '{print $2}' 

appstream-qt 0.12.10-2
avahi 0.8+6+g751be80-1
fcitx5-qt5-git r149.2e38c95-3
grantlee 5.2.0-2
kimageformats 5.67.0-1 (kf5)
kvantum-qt5-git 0.14.1.r39.g87bae21-1
libaccounts-qt 1.16-1
libdbusmenu-qt5 0.9.3+16.04.20160218-4
packagekit-qt5 1.0.2-1
phonon-qt5 4.11.1-1
phonon-qt5-gstreamer 4.10.0-1
plasma-framework 5.67.0-2 (kf5)
polkit-qt5 0.113.0-1
poppler-qt5 0.85.0-1
pyside2 5.14.1-1 (qt qt5)
python-pyqt5 5.14.1-2 (pyqt5)
python-pyqt5-sip 12.7.1-1
qca 2.2.1-4
qt5-3d 5.14.1-2 (qt qt5)
qt5-base 5.14.1-2 (qt qt5)
qt5-charts 5.14.1-1 (qt qt5)
qt5-connectivity 5.14.1-1 (qt qt5)
qt5-datavis3d 5.14.1-1 (qt qt5)
qt5-declarative 5.14.1-1 (qt qt5)
qt5-graphicaleffects 5.14.1-1 (qt qt5)
qt5-imageformats 5.14.1-1 (qt qt5)
qt5-location 5.14.1-1 (qt qt5)
qt5-lottie 5.14.1-1 (qt qt5)
qt5-multimedia 5.14.1-1 (qt qt5)
qt5-networkauth 5.14.1-1 (qt qt5)
qt5-purchasing 5.14.1-1 (qt qt5)
qt5-quickcontrols 5.14.1-1 (qt qt5)
qt5-quickcontrols2 5.14.1-1 (qt qt5)
qt5-remoteobjects 5.14.1-1 (qt qt5)
qt5-script 5.14.1-1 (qt qt5)
qt5-scxml 5.14.1-1 (qt qt5)
qt5-sensors 5.14.1-1 (qt qt5)
qt5-serialbus 5.14.1-1 (qt qt5)
qt5-serialport 5.14.1-1 (qt qt5)
qt5-speech 5.14.1-1 (qt qt5)
qt5-svg 5.14.1-1 (qt qt5)
qt5-tools 5.14.1-1 (qt qt5)
qt5-translations 5.14.1-1 (qt qt5)
qt5-virtualkeyboard 5.14.1-1 (qt qt5)
qt5-wayland 5.14.1-1 (qt qt5)
qt5-webchannel 5.14.1-1 (qt qt5)
qt5-webengine 5.14.1-1 (qt qt5)
qt5-webglplugin 5.14.1-1 (qt qt5)
qt5-webkit 5.212.0alpha3-9
qt5-websockets 5.14.1-1 (qt qt5)
qt5-x11extras 5.14.1-1 (qt qt5)
qt5-xcb-private-headers 5.14.1-2
signond 8.60-1
sonnet 5.67.0-1 (kf5)

@Frederick888
Copy link

I can also confirm this issue. Installed via AUR on an up-to-date Arch Linux system.

@0xJchen
Copy link

0xJchen commented Feb 28, 2020

Same problem occurred on latest version arch Linux. Failed to compile the package.

@Dr-Incognito
Copy link
Owner

Dr-Incognito commented Mar 4, 2020

@Frederick888 @peppacat
Sorry for the inconvenience.
Are you using KDE as your desktop environment? I haven't tested it on KDE.

I'm busy these days. I'll check this issue ASAP.
Could you provide the output of pacman -Qs qt5?

Thank you very much!

@Dr-Incognito
Copy link
Owner

Dr-Incognito commented Mar 4, 2020

@axionl @Frederick888 @peppacat
BTW, as mentioned by @zhanghua000 at AUR.
Does the application work normally with the root user?

@axionl
Copy link
Author

axionl commented Mar 5, 2020

Thanks for the mention. From my points of view, the qqc2-desktop-style 5.67.1-1 (kf5) package on Arch Linux also provides the ComboBox.qml which is the old one. The default QML_IMPORT_PATH also include the sub-directory org.kde.desktop. This is similar to a component issue previously reported by one person.

$ pacman -Ql qqc2-desktop-style | rg ComboBox.qml
qqc2-desktop-style /usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml

After backing up this file, I soft-linked a new component (/usr/lib/qt/qml/QtQuick/Controls.2/ComboBox.qml) and found that the problem was indeed solved.

Trace Details:
图片

@Dr-Incognito
Copy link
Owner

Hi @axionl
Do you have any idea to solve this issue?
Manually replacing ComboBox.qml seems not a good solution.

@Dr-Incognito
Copy link
Owner

I created a bug report at KDE Bug Tracking System.

@Dr-Incognito Dr-Incognito added the help wanted Extra attention is needed label Apr 2, 2020
Dr-Incognito added a commit that referenced this issue Apr 3, 2020
@Dr-Incognito Dr-Incognito removed the help wanted Extra attention is needed label Apr 3, 2020
Dr-Incognito added a commit that referenced this issue Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants