notes icon indicating copy to clipboard operation
notes copied to clipboard

Settings window issue

Open glpzzz opened this issue 2 years ago • 16 comments

image

when clicking in the 3 dots icon, in top right, the app ends up like this. No warnings or errors on terminal.

Ubuntu 23.04

glpzzz avatar Jul 28 '23 21:07 glpzzz

Are you running wayland?

zjeffer avatar Jul 28 '23 21:07 zjeffer

No. I'm running Xorg. Current compositor is picom. Disabling the compositor makes the transparent windows to display all black, no content.

glpzzz avatar Jul 28 '23 21:07 glpzzz

Which installation method/package did you use?

Can you check the version of the app and the Qt version (gear icon > About, qt version is all the way at the bottom)

zjeffer avatar Jul 28 '23 21:07 zjeffer

I built it.

App Version: 2.2.0 (Pro Version) Qt version: 6.4.2 (built with 6.4.2)

glpzzz avatar Jul 28 '23 21:07 glpzzz

Thanks. When running through the terminal, do you get any errors?

I think you may be missing the dependency for QML. The dependency list in the readme is probably outdated. Although I would expect the compilation to fail if that's the case.

zjeffer avatar Jul 28 '23 21:07 zjeffer

Maybe you can test out the appimage to see if the problem goes away.

zjeffer avatar Jul 28 '23 21:07 zjeffer

I'm submitting a PR to add another package in instructions for Ubuntu 23.04 qml6-module-qtdatavisualization. Without this one, is not possible to build.

When running from the terminal, this is the output:

QApplication: invalid style override 'kvantum' passed, ignoring it.
	Available styles: Windows, Fusion
qrc:/qt/qml/EditorSettings.qml: module "kvantum" is not installed
qrc:/qt/qml/kanbanMain.qml: module "kvantum" is not installed
Database: connection ok

but except for settings windows and kanban view, it works good.

glpzzz avatar Jul 28 '23 21:07 glpzzz

What's the output of echo $QT_QPA_PLATFORMTHEME?

zjeffer avatar Jul 28 '23 22:07 zjeffer

blank. I don't have that env var.

$ env | grep QT                                                                                           
QT_STYLE_OVERRIDE=kvantum

glpzzz avatar Jul 28 '23 22:07 glpzzz

Ah yes, that's the one I meant.

Looks like overriding the style to one that QML doesn't know about makes the QML windows invisible. We'll fix this. Thanks for reporting.

For now, you can run Notes with QT_STYLE_OVERRIDE="" notes until the bug is fixed.

zjeffer avatar Jul 28 '23 22:07 zjeffer

@glpzzz So still the editor settings and Kanban view don't work?

nuttyartist avatar Jul 28 '23 22:07 nuttyartist

image

Thanks! Settings window now works. It seems is not a regular window right? I have not checked the source yet.

When activating kanban from the settings window, it kind of works, but only shows notes created from kanban mode. Not the others.

I see there is a Pro icon below kanban. Perhaps this is my issue? Or do building it from source bypasses pro check?

glpzzz avatar Jul 28 '23 22:07 glpzzz

  • It is indeed not supposed to be a regular window, but a popup.
  • Kanban mode will only work with a specific format. Create a new item with the + icon in the kanban view, and go back to the regular view to see the format it creates.
  • Building it from source gets you the Pro features.

zjeffer avatar Jul 28 '23 22:07 zjeffer

I see there is a Pro icon below kanban. Perhaps this is my issue? Or do building it from source bypasses pro check?

It bypasses it. I forgot to remove the Pro label for Pro version, it's good you reminded me.

The rest answered by @zjeffer 👍

nuttyartist avatar Jul 28 '23 22:07 nuttyartist

Thaks! Good app!

glpzzz avatar Jul 28 '23 22:07 glpzzz

When running from the terminal, this is the output:

QApplication: invalid style override 'kvantum' passed, ignoring it.
	Available styles: Windows, Fusion
qrc:/qt/qml/EditorSettings.qml: module "kvantum" is not installed
qrc:/qt/qml/kanbanMain.qml: module "kvantum" is not installed
Database: connection ok

but except for settings windows and kanban view, it works good.

Looks like this issue (which is about our Flatpak package, but the symptom is the same):

  • https://github.com/flathub/io.github.nuttyartist.notes/issues/1

Last time I researched about this message, it led me to this Qt bug, which has no solution yet. We only have the workaround already mentioned here by @zjeffer.

guihkx avatar Jul 28 '23 23:07 guihkx