QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

[I] The script "Journal entry" doesn't work on Windows

Open lambertlulala opened this issue 4 months ago • 35 comments

Expected behaviour

It should open a dialog to let me select a certain date.

Actual behaviour

Nothing happened. But the log showed an error message:
[23:43:43] [critical] file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:3 module "QtQuick.Controls" is not installed file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:2 module "QtQuick.Layouts" is not installed file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:1 module "QtQuick.Dialogs" is not installed

Steps to reproduce

I installed the script "Journal entry" and click 'Scripting -> Custom actions -> Create or open a journal entry for a certain date'.

Relevant log output in the Log panel

Expand
[23:43:15] [scripting] loading script file: C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/journal-entry.qml
[23:43:19] [scripting] loading script file: C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/journal-entry.qml
[23:43:43] [critical] file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:3 module "QtQuick.Controls" is not installed file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:2 module "QtQuick.Layouts" is not installed file:///C:/Users/user/AppData/Roaming/PBE/QOwnNotes/scripts/journal-entry/calendar-window.qml:1 module "QtQuick.Dialogs" is not installed

Information about the application, settings and environment

Expand

QOwnNotes Debug Information

General Info

Current Date: Sun Jul 27 23:55:13 2025 Version: 25.7.8 Build date: Jul 22 2025 Build number: 1205 Platform: windows (windows) Operating System: Windows 11 Version 24H2 Build architecture: x86_64 Current architecture: x86_64 Release: GitHub Actions Qt Version (build): 6.9.1 Qt Version (runtime): 6.9.1 Portable mode: no Settings path / key: \HKEY_CURRENT_USER\Software\PBE\QOwnNotes Application database path: C:\Users\user\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite Application arguments: C:\tools\QOwnNotes\QOwnNotes.exe Qt Debug: no System Botan: no Libgit2: no Locale (system): zh_TW Locale (interface): empty Primary screen resolution: 1920x1080 Icon theme: breeze-dark-qownnotes Notes in current note folder: 0 Calendar items: 0 Enabled scripts: 1 Database drivers: QIBASE, QSQLITE, QMIMER, QOCI, QODBC, QPSQL

Server Info

serverUrl: empty appIsValid: yes notesPathExists: empty serverVersion: empty appVersion: empty

Spellchecking

Enabled: false Selected language: auto Language codes: empty Language names: empty Application dictionaries path: C:\Users\user\AppData\Roaming\PBE\QOwnNotes\dicts

Note folders

currentNoteFolderId: 1

Note folder default

id: 1 isCurrent: yes activeTagId: -1 localPath: D:\git\qownnotes_note remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: D:\git\qownnotes_note\notes.sqlite

Cloud connections

Cloud connection Default

id: 1 isCurrent: yes serverUrl: empty username: empty accountId: empty

Enabled scripts

Script Journal entry

id: 1 path: C:\Users\user\AppData\Roaming\PBE\QOwnNotes\scripts\journal-entry\journal-entry.qml variablesJson:

{
    "defaultTags": "journal",
    "noteBodyTemplate": "",
    "noteTitleFormat": "Journal {YYYYMMDD}"
}

identifier: journal-entry version: 1.8.0 minAppVersion: 20.4.16

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> Debug/fakeOldVersionNumber (bool): false Debug/fileLogging (bool): false DictionaryManagerDialog/geometry (QByteArray): <binary data> DictionaryManagerDialog/mainSplitterState (QByteArray): <binary data> DistractionFreeMode/menuBarGeometry (QByteArray): <binary data> DistractionFreeMode/menuBarHeight (int): 21 DistractionFreeMode/menuBarVisible (QString): true DistractionFreeMode/windowState (QByteArray): <binary data> Editor/CurrentSchemaKey (QString): EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f Editor/autoBracketClosing (bool): true Editor/autoBracketRemoval (bool): true Editor/centerCursor (QString): false Editor/disableCursorBlinking (bool): false Editor/editorWidthInDFMOnly (bool): true Editor/highlightCurrentLine (bool): true Editor/indentSize (int): 4 Editor/removeTrailingSpaces (bool): false Editor/showLineNumbers (bool): false Editor/useTabIndent (bool): false Editor/vimMode (bool): false FileDialog/LastPath (QString): C:/tools/QOwnNotes/scripts FileDialog/LastPath-NotePDFExport (QString): D:/ FileDialog/LastPath-SchemaExport (QString): D:/ FileDialog/LastPath-ScriptPath (QString): C:/tools/QOwnNotes/scripts FileDialog/LastPath-ScriptSettingsFile-paste-html-as-github-markdown-pandocPath (QString): C:/Users/user/AppData/Local/Pandoc IssueAssistantDialog/geometry (QByteArray): <binary data> LastUpdateCheck (QDateTime): 2025-07-27T23:42:48.810 LinkDialog/geometry (QByteArray): <binary data> LocalTrashDialog/geometry (QByteArray): <binary data> LogWidget/criticalLog (bool): true LogWidget/debugLog (bool): true LogWidget/fatalLog (bool): true LogWidget/infoLog (bool): true LogWidget/scriptingLog (bool): true LogWidget/statusLog (bool): true LogWidget/warningLog (bool): true MainWindow/geometry (QByteArray): <binary data> MainWindow/mainToolBar.iconSize (int): 24 MainWindow/menuBarGeometry (QByteArray): <binary data> MainWindow/noteSubFolderTreeWidgetExpandState-1 (QStringList): Test/lll, vvv MainWindow/noteTextEdit.code.font (QString): Sarasa Mono TC,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular MainWindow/noteTextEdit.font (QString): 等距更紗黑體 TC,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular MainWindow/noteTextView.code.font (QString): Sarasa Mono TC,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular MainWindow/noteTextView.font (QString): Sarasa Mono TC,9,-1,5,400,1,0,0,0,0,0,0,0,0,0,1,Italic MainWindow/noteTextView.ignoreCodeFontSize (bool): true MainWindow/noteTextView.refreshDebounceTime (int): 600 MainWindow/noteTextView.rtl (bool): false MainWindow/noteTextView.underline (bool): false MainWindow/noteTextView.useEditorStyles (bool): false MainWindow/noteTextView.useInternalExportStyling (bool): true MainWindow/showNotesFromAllNoteSubFolders (QString): false NoteDialog/geometry (QByteArray): <binary data> NoteDialog/tabWidgetIndex (int): 0 NoteFolder-1/NoteTabNameList (QStringList): empty NoteFolder-1/NoteTabStickinessList (QStringList): empty NoteFolder-1/NoteTabSubFolderPathDataList (QStringList): empty NoteHistory-1 (QVariantList): <variant list with 21 item(s)> NoteHistoryCurrentIndex-1 (int): 20 PiwikClientId (QString): <hidden> Printer/NotePDFExportOrientation (int): 0 Printer/NotePDFExportPageSize (int): 4 ScriptRepositoryDialog/geometry (QByteArray): <binary data> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (int): 0 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShareDialog/geometry (QByteArray): <binary data> Shortcuts/MainWindow-customAction_createMeetingNote (QString): empty Shortcuts/MainWindow-customAction_html2Markdown (QString): empty Shortcuts/MainWindow-customAction_html2org (QString): empty Shortcuts/MainWindow-customAction_journalEntry (QString): empty Shortcuts/MainWindow-customAction_journalEntryDate (QString): empty Shortcuts/MainWindow-customAction_journalEntryTomorrow (QString): empty Shortcuts/MainWindow-customAction_latex-math-refresh (QString): empty Shortcuts/MainWindow-customAction_noButtonAction (QString): empty Shortcuts/MainWindow-customAction_noteSubFolder (QString): empty Shortcuts/MainWindow-customAction_openWithKWrite (QString): empty Shortcuts/MainWindow-customAction_setActiveTag (QString): empty Shortcuts/MainWindow-customAction_testDialog (QString): empty Shortcuts/MainWindow-customAction_tortoiseGitCommand (QString): empty Shortcuts/MainWindow-customAction_transformTextRot13 (QString): empty ShowSystemTray (bool): false StartHidden (bool): false StoredAttachmentsDialog/geometry (QByteArray): <binary data> StoredImagesDialog/geometry (QByteArray): <binary data> WebSocketTokenDialog/geometry (QByteArray): <binary data> WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (bool): false ai/groq/apiKey (QString): <hidden> ai/openai/apiKey (QString): <hidden> ai/responseTimeout (int): 15 allowNoteEditing (bool): true allowOnlyOneAppInstance (bool): true appMetrics/disableAppHeartbeat (bool): false appMetrics/disableTracking (bool): false appMetrics/notificationShown (QString): true autoReadOnlyMode (bool): false autoReadOnlyModeTimeout (int): 30 automaticNoteFolderDatabaseClosing (bool): false checkSpelling (bool): false closeTodoListAfterSave (bool): false cryptoKey (qlonglong): <hidden> currentNoteFolderId (int): 1 currentWorkspace (QString): initial cursorWidth (int): 1 darkMode (bool): true darkModeColors (bool): true darkModeIconTheme (bool): true darkModeTrayIcon (bool): true defaultNoteFileExtension (QString): md demoNotesCreated (QString): true disableAutomaticUpdateDialog (bool): true disableSavedSearchesAutoCompletion (bool): false dockWasInitializedOnce (QString): true enableNoteTree (bool): false enableSocketServer (bool): true enableWebAppSupport (bool): false externalEditorPath (QString): empty fullyHighlightedBlockquotes (bool): false gitCommitInterval (int): 30 gitExecutablePath (QString): empty gitLogCommand (QString): gitk guiFirstRunInit (bool): true hideIconsInMenus (bool): false hideTabCloseButton (bool): false ignoreAllExternalModifications (bool): false ignoreAllExternalNoteFolderChanges (bool): false ignoreNoteSubFolders (QString): ^\. ignoredNoteFiles (QString): empty imageScaleDown (bool): false imageScaleDownMaximumHeight (int): 1024 imageScaleDownMaximumWidth (int): 1024 initialLayoutIdentifier (QString): minimal insertTimeFormat (QString): empty interfaceFontSize (int): 11 interfaceLanguage (QString): empty interfaceScalingFactor (int): 100 internalIconTheme (bool): false itemHeight (int): 14 legacyLinking (bool): false localTrash/autoCleanupDays (int): 30 localTrash/autoCleanupEnabled (bool): true localTrash/supportEnabled (bool): true localTrashSplitterSizes (QByteArray): <binary data> markdownHighlightingEnabled (bool): true maxNoteFileSize (int): 1048576 navigationPanelAutoSelect (bool): true navigationPanelHideSearch (bool): false networking/ignoreSSLErrors (bool): true networking/proxyType (int): 2 newNoteAskHeadline (bool): false noteEditIsCentralWidget (bool): true noteFileExtensionList (QStringList): md, txt noteListPreview (bool): false noteSaveIntervalTime (int): 10 noteSubfoldersPanelDisplayAsFullTree (bool): false noteSubfoldersPanelHideSearch (bool): false noteSubfoldersPanelOrder (int): 0 noteSubfoldersPanelShowFullPath (bool): false noteSubfoldersPanelShowNotesRecursively (bool): false noteSubfoldersPanelShowRootFolderName (bool): false noteSubfoldersPanelSort (int): 1 noteSubfoldersPanelTabsUnsetAllNotesSelection (bool): false notesPanelOrder (int): 1 notesPanelSort (int): 1 notesPath (QString): D:/git/qownnotes_note notifyAllExternalModifications (bool): false overrideInterfaceFontSize (bool): false overrideInterfaceScalingFactor (bool): false ownCloud/supportEnabled (bool): false ownCloud/todoCalendarBackend (int): 1 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> ownCloud/todoCalendarCalDAVServerUrl (QString): empty ownCloud/todoCalendarCalDAVUsername (QString): empty ownCloud/todoCalendarCloudConnectionId (int): 1 ownCloud/todoCalendarDisplayNameList (QStringList): empty ownCloud/todoCalendarEnabledList (QStringList): empty ownCloud/todoCalendarEnabledUrlList (QStringList): empty ownCloud/todoCalendarUrlList (QStringList): empty ownCloudInfo/appIsValid (bool): true ownCloudInfo/connectionErrorMessage (QString): empty ownCloudInfo/notesPathExistsText (QString): empty ownCloudInfo/serverVersion (QString): empty recentNoteFolders (QStringList): C:/tools/QOwnNotes/Data restoreCursorPosition (bool): true restoreLastNoteAtStartup (bool): true restoreNoteTabs (bool): true savedSearches/noteFolder-1 (QStringList): Note 2025-07-27 20h44s19, 面試多家公司(長文甚入)上 - 科技業板 Dcard, *3*., Note 2025-07-27 17h30s32, Note 2025-07-27 17h13s13, ->, 面試, Note 2025-07-27 16h51s40, Note 2025-07-27 16h43s32, Note 2025-07-27 13h15s43, Note 2025-07-27 12h05s39, Note 2025-07-26 20h22s11, Note 2025-07-26 19h21s03, Note 2025-07-26 12h06s17, Note 2025-07-26 12h00s55, Note 2025-07-26 11h57s40, CopyQ, Note 2025-07-26 10h37s46, Note 2025-07-26 10h16s08, Note 2025-07-26 10h03s26, Note 2025-07-26 09h30s29, CopyQ 2025-07-26T09.27.41, CopyQ 2025-07-26T09.27.20, Note 2025-07-26 09h20s39, Note 2025-07-25 22h50s45, Note 2025-07-25 22h17s00, Note 2025-07-25 21h46s16, Note 2025-07-25 21h42s15, Note 2025-07-25 21h30s00, Note 2025-07-25 21h26s51, Overview QOwnNotes, Note 2025-03-23T10.12.42, Note 2025-03-23T10.12.23, Note 2025-03-23T10.11.10, Note 2025-03-23T10.09.55, Note 2025-03-23T10.08.07, Note 2025-03-23T09.58.41 showMatches (bool): true showMenuBar (bool): true showStatusBar (bool): true showStatusBarNotePath (bool): true showStatusBarRelativeNotePath (bool): false startInReadOnlyMode (bool): false systemIconTheme (bool): false taggingShowNotesRecursively (bool): false tagsPanelHideNoteCount (bool): false tagsPanelHideSearch (bool): false tagsPanelOrder (int): 0 tagsPanelSort (int): 0 todoCalendarSupport (bool): true toolbar/1/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/1/name (QString): formattingToolbar toolbar/1/title (QString): formatting toolbar toolbar/2/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time toolbar/2/name (QString): insertingToolbar toolbar/2/title (QString): inserting toolbar toolbar/3/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note toolbar/3/name (QString): encryptionToolbar toolbar/3/title (QString): encryption toolbar toolbar/4/items (QStringList): actionEnable_AI, actionAiBackendComboBox, actionAiModelComboBox toolbar/4/name (QString): aiToolbar toolbar/4/title (QString): AI toolbar toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size toolbar/5/name (QString): windowToolbar toolbar/5/title (QString): window toolbar toolbar/6/items (QStringList): action_Quit toolbar/6/name (QString): quitToolbar toolbar/6/title (QString): quit toolbar toolbar/7/items (QStringList): action_Quit toolbar/7/name (QString): quitToolbar toolbar/7/title (QString): quit toolbar toolbar/size (int): 7 useNoteFolderButtons (bool): false useUNIXNewline (bool): false webAppClientService/serverUrl (QString): wss://app.qownnotes.org webAppClientService/token (QString): <hidden> webSocketServerService/bookmarksNoteName (QString): empty webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/commandSnippetsNoteName (QString): Commands webSocketServerService/commandSnippetsTag (QString): commands webSocketServerService/port (int): 22222 webSocketServerService/token (QString): <hidden> workspace-initial/name (QString): Minimal workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QStringList): initial

System environment

****: ::=::\ ALLUSERSPROFILE: C:\ProgramData APPDATA: C:\Users\user\AppData\Roaming BASH_ENV: /etc/bash.bashrc CLINK_DIR: C:\Program Files (x86)\clink CommonProgramFiles: C:\Program Files\Common Files CommonProgramFiles(x86): C:\Program Files (x86)\Common Files CommonProgramW6432: C:\Program Files\Common Files COMPUTERNAME: USER ComSpec: C:\WINDOWS\system32\cmd.exe DriverData: C:\Windows\System32\Drivers\DriverData EFC_8660_1592913036: 1 FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer FPS_BROWSER_USER_PROFILE_STRING: Default HOMEDRIVE: C: HOMEPATH: \Users\user LOCALAPPDATA: C:\Users\user\AppData\Local LOGONSERVER: \\USER NUMBER_OF_PROCESSORS: 12 NVIDIAWHITELISTED: 0x01 OS: Windows_NT Path: C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Users\user\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python312\;C:\Windows\system32;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;c:\Program Files\Git\usr\bin\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\tools\everything;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\msys64\mingw64\bin;C:\Program Files\CMake\bin;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;C:\Program Files\PowerShell\7\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Users\user\AppData\Local\Programs\Python\Launcher\;C:\Users\user\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python312\;c:\Windows\System32;C:\Users\user\AppData\Local\Microsoft\WindowsApps;c:\Program Files\dotnet;C:\Program Files\Git\bin\;c:\Program Files\Git\usr\bin\;C:\ProgramData\dotnet-script\dotnet-script;C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin;C:\tools\everything;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Local\Microsoft\WinGet\Links;C:\msys64\mingw64\bin;C:\Users\user\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;C:\Users\user\AppData\Local\Programs\Espanso;C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\yt-dlp.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-N-120063-g5bcff199d9-win64-gpl/bin;C:\Users\user\.dotnet\tools;C:\Users\user\AppData\Local\Pandoc\ PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC POSH_INSTALLER: winget POWERSHELL_DISTRIBUTION_CHANNEL: USER:Windows 10 Home PROCESSOR_ARCHITECTURE: AMD64 PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel PROCESSOR_LEVEL: 6 PROCESSOR_REVISION: 9e0a ProgramData: C:\ProgramData ProgramFiles: C:\Program Files ProgramFiles(x86): C:\Program Files (x86) ProgramW6432: C:\Program Files PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC: C:\Users\Public SESSIONNAME: Console SHIM_MCCOMPAT: 0x810000001 SystemDrive: C: SystemRoot: C:\WINDOWS TEMP: C:\Users\user\AppData\Local\Temp TMP: C:\Users\user\AppData\Local\Temp USERDOMAIN: USER USERDOMAIN_ROAMINGPROFILE: USER USERNAME: user USERPROFILE: C:\Users\user windir: C:\WINDOWS WSLENV: BASH_ENV/u ZES_ENABLE_SYSMAN: 1

lambertlulala avatar Jul 27 '25 15:07 lambertlulala

Did this script work before under Windows?

pbek avatar Jul 27 '25 19:07 pbek

I can try to add more Qt libraries to the Windows release.

pbek avatar Jul 27 '25 19:07 pbek

Could you please try https://github.com/pbek/QOwnNotes/actions/runs/16555039991/artifacts/3624855296 and report if the script works there?

pbek avatar Jul 27 '25 20:07 pbek

Did this script work before under Windows?

Sorry, I'm a new user, it's my first time to use QOwnNotes, not sure whether the script worked before.

Could you please try https://github.com/pbek/QOwnNotes/actions/runs/16555039991/artifacts/3624855296 and report if the script works there?

This version also has the same issue, the log shows the same error as the one I mentioned. It indicates the modules "QtQuick.Controls", "QtQuick.Layouts" and "QtQuick.Dialogs" are not installed.

lambertlulala avatar Jul 27 '25 23:07 lambertlulala

Too bad, thank you for testing. I can try adding one more library.

pbek avatar Jul 28 '25 06:07 pbek

Thank you! I can help test it.

lambertlulala avatar Jul 28 '25 06:07 lambertlulala

Too bad, the library declarative doesn't seem to exist anymore as an option for windeployqt.

pbek avatar Jul 28 '25 18:07 pbek

But it seems the script never worked under Windows... See https://github.com/qownnotes/scripts/issues/197

pbek avatar Jul 28 '25 18:07 pbek

But it seems the script never worked under Windows... See qownnotes/scripts#197

It seems the approach to use them on Windows differ from on others. I have tested other scripting APIs provided by QOwnNotes, and they work without errors, it means that the issue is just really missing some modules. How could I install those modules if it's necessary for users to install them manually?

lambertlulala avatar Jul 29 '25 00:07 lambertlulala

I ask ChatGPT, it says that I could check whether the modules are installed in the folder such as QOwnNotes\qml\QtQuick\Controls.

And the below is the folder structure in QOwnNotes\qml:

C:.
├─QML
│      plugins.qmltypes
│      qmldir
│
├─QtQml
│  │  plugins.qmltypes
│  │  qmldir
│  │  qmlplugin.dll
│  │
│  ├─Models
│  │      modelsplugin.dll
│  │      plugins.qmltypes
│  │      qmldir
│  │
│  ├─WorkerScript
│  │      plugins.qmltypes
│  │      qmldir
│  │      workerscriptplugin.dll
│  │
│  └─XmlListModel
└─QtWebSockets
        plugins.qmltypes
        qmldir
        qmlwebsocketsplugin.dll

I'm not sure whether it's your expected result.

lambertlulala avatar Jul 29 '25 00:07 lambertlulala

I saw QtQuick installed in Windows OneDrive, and it's folder structure (in the path C:\Program Files\Microsoft OneDrive\25.127.0701.0006\qml) is

C:.
│  FabExMDL2.ttf
│
├─QtQml
│  │  plugins.qmltypes
│  │  qmldir
│  │  qmlplugin.dll
│  │
│  └─Models.2
│          modelsplugin.dll
│          plugins.qmltypes
│          qmldir
│
├─QtQuick
│  ├─Controls
│  │  │  ApplicationWindow.qml
│  │  │  plugins.qmltypes
│  │  │  qmldir
│  │  │  qtquickcontrolsplugin.dll
│  │  │  ScrollView.qml
│  │  │  TableViewColumn.qml
│  │  │  TreeView.qml
│  │  │
│  │  ├─Private
│  │  │      BasicTableView.qml
│  │  │      CalendarUtils.js
│  │  │      FocusFrame.qml
│  │  │      qmldir
│  │  │      ScrollBar.qml
│  │  │      ScrollViewHelper.qml
│  │  │      StackView.js
│  │  │      style.js
│  │  │      Style.qml
│  │  │      SystemPaletteSingleton.qml
│  │  │      TableViewItemDelegateLoader.qml
│  │  │      TextSingleton.qml
│  │  │      TreeViewItemDelegateLoader.qml
│  │  │
│  │  └─Styles
│  │      │  qmldir
│  │      │
│  │      ├─Base
│  │      │      BasicTableViewStyle.qml
│  │      │      ScrollViewStyle.qml
│  │      │      TreeViewStyle.qml
│  │      │
│  │      └─Flat
│  │              qmldir
│  │              qtquickextrasflatplugin.dll
│  │
│  ├─Controls.2
│  │      Button.qml
│  │      CheckBox.qml
│  │      ComboBox.qml
│  │      Dialog.qml
│  │      DialogButtonBox.qml
│  │      ItemDelegate.qml
│  │      Label.qml
│  │      Menu.qml
│  │      MenuItem.qml
│  │      plugins.qmltypes
│  │      Popup.qml
│  │      ProgressBar.qml
│  │      qmldir
│  │      qtquickcontrols2plugin.dll
│  │      RadioButton.qml
│  │      ScrollBar.qml
│  │      ScrollIndicator.qml
│  │      ScrollView.qml
│  │      TextField.qml
│  │
│  ├─Extras
│  │      plugins.qmltypes
│  │      qmldir
│  │      qtquickextrasplugin.dll
│  │
│  ├─Layouts
│  │      plugins.qmltypes
│  │      qmldir
│  │      qquicklayoutsplugin.dll
│  │
│  ├─Templates.2
│  │      plugins.qmltypes
│  │      qmldir
│  │      qtquicktemplates2plugin.dll
│  │
│  └─Window.2
│          plugins.qmltypes
│          qmldir
│          windowplugin.dll
│
└─QtQuick.2
        plugins.qmltypes
        qmldir
        qtquick2plugin.dll

Not sure whether it looks more reasonable?

lambertlulala avatar Jul 29 '25 01:07 lambertlulala

If you install Qt 9.6.1 (e.g. via https://www.qt.io/download-qt-installer-oss) and are able to find out with libraries (most of the time they are in C:\Qt) to copy where in the QOwnNotes folder I can do that in the release script.

pbek avatar Jul 29 '25 05:07 pbek

I install Qt 6.9.1 and copy its QtQuick into QOwnNotes folder and unfortunately it says "qtquickdialogsplugin.dll" can not found module. But the file already exists there.

Thank you for the help, I think the issue may be hard to resolve on Windows.

lambertlulala avatar Jul 29 '25 05:07 lambertlulala

In the Qt installation dialog there should be some further options to add additional modules. Can you see them?

pbek avatar Jul 29 '25 05:07 pbek

In the Qt installation dialog there should be some further options to add additional modules. Can you see them?

Yes, I can see 'Additional Libraries' and select them all.

Image

After I copy all folders and files from Qt into QOwnNotes qml, the folder structure is shown below:

Expand
D:.
├─Assets
│  └─Downloader
│      └─objects-RelWithDebInfo
│          ├─QmlAssetDownloaderplugin_init
│          └─QmlAssetDownloader_resources_1
│              └─.qt
│                  └─rcc
├─QML
├─QmlTime
├─Qt
│  ├─labs
│  │  ├─animation
│  │  ├─folderlistmodel
│  │  ├─lottieqt
│  │  ├─platform
│  │  ├─qmlmodels
│  │  ├─settings
│  │  ├─sharedimage
│  │  └─wavefrontmesh
│  └─test
│      └─controls
│          └─objects-RelWithDebInfo
│              └─QuickControlsTestUtilsPrivate_resources_1
│                  └─.qt
│                      └─rcc
├─Qt3D
│  ├─Animation
│  ├─Core
│  ├─Extras
│  ├─Input
│  ├─Logic
│  └─Render
├─Qt5Compat
│  └─GraphicalEffects
│      └─private
├─QtCharts
│  └─designer
│      ├─default
│      └─images
├─QtCore
├─QtDataVisualization
│  └─designer
│      ├─default
│      └─images
├─QtGraphs
│  └─designer
│      ├─default
│      └─images
├─QtGrpc
├─QtLocation
├─QtMultimedia
├─QtNetwork
├─QtPositioning
├─QtProtobuf
├─QtQml
│  ├─Models
│  ├─StateMachine
│  ├─WorkerScript
│  └─XmlListModel
├─QtQuick
│  ├─Controls
│  │  ├─Basic
│  │  │  └─impl
│  │  ├─designer
│  │  │  └─images
│  │  ├─FluentWinUI3
│  │  │  ├─dark
│  │  │  │  └─images
│  │  │  ├─icons
│  │  │  ├─impl
│  │  │  └─light
│  │  │      └─images
│  │  ├─Fusion
│  │  │  └─impl
│  │  ├─Imagine
│  │  │  └─impl
│  │  ├─impl
│  │  ├─Material
│  │  │  └─impl
│  │  ├─Universal
│  │  │  └─impl
│  │  └─Windows
│  │      ├─images
│  │      └─impl
│  ├─Dialogs
│  │  └─quickimpl
│  │      └─qml
│  │          ├─+Fusion
│  │          ├─+Imagine
│  │          ├─+Material
│  │          └─+Universal
│  ├─Effects
│  ├─Layouts
│  ├─LocalStorage
│  ├─NativeStyle
│  │  ├─controls
│  │  └─util
│  ├─Particles
│  ├─Scene2D
│  ├─Scene3D
│  ├─Shapes
│  ├─Templates
│  ├─Timeline
│  │  └─BlendTrees
│  ├─tooling
│  ├─VectorImage
│  ├─VirtualKeyboard
│  │  ├─Components
│  │  ├─Core
│  │  ├─Layouts
│  │  ├─Plugins
│  │  │  ├─Hangul
│  │  │  ├─OpenWNN
│  │  │  ├─Pinyin
│  │  │  ├─TCIme
│  │  │  └─Thai
│  │  ├─Settings
│  │  └─Styles
│  │      └─Builtin
│  └─Window
├─QtQuick3D
│  ├─AssetUtils
│  │  └─designer
│  │      └─images
│  ├─designer
│  │  ├─images
│  │  └─source
│  ├─Effects
│  │  └─designer
│  │      └─images
│  ├─Helpers
│  │  ├─designer
│  │  │  └─images
│  │  ├─impl
│  │  └─meshes
│  ├─MaterialEditor
│  ├─ParticleEffects
│  │  └─designer
│  │      ├─images
│  │      └─source
│  ├─Particles3D
│  │  └─designer
│  │      ├─images
│  │      └─source
│  ├─Physics
│  │  ├─designer
│  │  │  └─images
│  │  └─Helpers
│  ├─SpatialAudio
│  └─Xr
├─QtQuickEffectMaker
│  └─defaultnodes
│      ├─basic
│      ├─common
│      ├─extra
│      ├─images
│      └─nature
├─QtRemoteObjects
├─QtScxml
├─QtSensors
├─QtTest
├─QtTextToSpeech
├─QtWebChannel
├─QtWebSockets
└─QtWebView

But unfortunately the QOwnNotes log shows an error:

[14:22:52] [critical] file:///D:/Downloads/QOwnNotes_test/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 Cannot load library D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll: 找不到指定的模組。 

Meaning it can not find some specific modules, but I don't know what modules.

lambertlulala avatar Jul 29 '25 06:07 lambertlulala

[14:22:52] [critical] file:///D:/Downloads/QOwnNotes_test/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 Cannot load library D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll: 找不到指定的模組。

Did you put the DLL there, or is it missing? And if it is missing, can you find it in the Qt installation?

pbek avatar Jul 29 '25 07:07 pbek

[14:22:52] [critical] file:///D:/Downloads/QOwnNotes_test/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 Cannot load library D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll: 找不到指定的模組。

Did you put the DLL there, or is it missing? And if it is missing, can you find it in the Qt installation?

Yes, the file is there. I'm not sure whether that library needs other runtime libraries to be installed, or they have some dependencies on Windows.

lambertlulala avatar Jul 29 '25 13:07 lambertlulala

D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll

You put the file there, didn't you? Where did you take it from? The Qt versions need to match. In your case that would still be Qt 6.10.

With the ZIP from https://github.com/pbek/QOwnNotes/actions/runs/16604354643 it will be Qt 6.9.1.

pbek avatar Jul 29 '25 18:07 pbek

D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll

You put the file there, didn't you? Where did you take it from? The Qt versions need to match. In your case that would still be Qt 6.10.

With the ZIP from https://github.com/pbek/QOwnNotes/actions/runs/16604354643 it will be Qt 6.9.1.

Yes, I put the file there, very sure. If I didn't put there, QOwnNotes will not tell me that the information about D:\Downloads\QOwnNotes_test\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll. Instead, it just told me it needed QtQuick relevent modules.

I installed Qt 6.9.1, not 6.10. The version it showed from file detail dialog on Windows is 6.9.1.0, not 6.10.

lambertlulala avatar Jul 30 '25 01:07 lambertlulala

So have you tried to put libraries into the release from https://github.com/pbek/QOwnNotes/actions/runs/16604354643?

pbek avatar Jul 30 '25 04:07 pbek

By the way:

25.7.9

  • More libraries were added to the Windows release of QOwnNotes to improve the compatibility with certain scripts from the script repository (for #3332)

But that's just the libraries that didn't help you with the script yet. Key would be to find out which files to copy from the Qt installation to the QOwnNotes release so that the script work, since windeployqt isn't helping.

pbek avatar Jul 30 '25 07:07 pbek

So have you tried to put libraries into the release from https://github.com/pbek/QOwnNotes/actions/runs/16604354643?

Thank you for building a new version again! I have tested it, but it still has the same error:

[15:02:14] [critical] file:///D:/Downloads/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 Cannot load library D:\Downloads\QOwnNotes\qml\QtQuick\Dialogs\qtquickdialogsplugin.dll: 找不到指定的模組。 

The step I have tried is:

  1. Rename the folder qml under QOwnNotes to the other name.
  2. Copy the whole folder C:\Qt\6.9.1\mingw_64\qml into QOwnNotes folder. qtquickdialogsplugin.dll is also included.
  3. Run the custom script from Custom actions menu.

I'm not sure whether some release steps (official) are changed on Windows, or the usage of windeployqt has changed. Thank you for the help! I think that built-in scripting APIs are enough for daily use.

lambertlulala avatar Jul 30 '25 07:07 lambertlulala

Copy the whole folder C:\Qt\6.9.1\mingw_64\qml into QOwnNotes folder. qtquickdialogsplugin.dll is also included.

https://github.com/jurplel/install-qt-action?tab=readme-ov-file#arch says it might be using win64_msvc2022_64.

And then:

https://github.com/pbek/QOwnNotes/blob/0e3f32a9fa1a4d37f626be139cdf18e42d0c4172/build-systems/github/windows/build-zip-qt6.ps1#L13-L16 is using nmake for building.

pbek avatar Jul 30 '25 11:07 pbek

Copy the whole folder C:\Qt\6.9.1\mingw_64\qml into QOwnNotes folder. qtquickdialogsplugin.dll is also included.

https://github.com/jurplel/install-qt-action?tab=readme-ov-file#arch says it might be using win64_msvc2022_64.

And then:

QOwnNotes/build-systems/github/windows/build-zip-qt6.ps1

Lines 13 to 16 in 0e3f32a

qmake6 CONFIG+=release QOwnNotes.pro -r lrelease QOwnNotes.pro set CL=/MP nmake is using nmake for building.

Thanks for your sharing! I find that Qt doesn't install msvc2022 libraries by default. I'll select the option and test it.

lambertlulala avatar Jul 30 '25 12:07 lambertlulala

QOwnNotes finally uses the correct modules, but it has another error:

D:/Downloads/QOwnNotes/Data/scripts/journal-entry/journal-entry.qml
[20:37:55] [critical] file:///D:/Downloads/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 module "QtQuick.Dialogs" version 1.2 is not installed 

Note that I also copied all .dll files from C:\Qt\6.9.1\msvc2022_64\bin to QOwnNotes, but I didn't overwrite those existing .dll files.

lambertlulala avatar Jul 30 '25 12:07 lambertlulala

So more libraries are missing 🤔😁

pbek avatar Jul 30 '25 13:07 pbek

For comparison, this is the content of the Qt directory in the CI:

https://github.com/pbek/QOwnNotes/actions/runs/16632369600/job/47064803856#step:7:75

pbek avatar Jul 30 '25 20:07 pbek

For comparison, this is the content of the Qt directory in the CI:

https://github.com/pbek/QOwnNotes/actions/runs/16632369600/job/47064803856#step:7:75

I modified the code:

import QtQuick.Dialogs
import QtQuick.Layouts
import QtQuick.Controls

It looks like it can find QtQuick.Dialogs installed, but:

[07:14:09] [critical] file:///D:/Downloads/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:14 Composite Singleton Type Calendar is not creatable. 

lambertlulala avatar Jul 30 '25 23:07 lambertlulala

Your code is importing QtQuick.Controls 1.4, but the Calendar type is only available in QtQuick.Controls 2.x. To fix the error, update your import to use QtQuick.Controls 2.4 (or higher), and ensure you are using the correct Calendar API.

Wild guess from ChatGPT... Can you please try to use import QtQuick.Controls 2.4 instead of 1.4 or no version in line 3?

pbek avatar Jul 31 '25 04:07 pbek

Your code is importing QtQuick.Controls 1.4, but the Calendar type is only available in QtQuick.Controls 2.x. To fix the error, update your import to use QtQuick.Controls 2.4 (or higher), and ensure you are using the correct Calendar API.

Wild guess from ChatGPT... Can you please try to use import QtQuick.Controls 2.4 instead of 1.4 or no version in line 3?

The modified code:

import QtQuick.Dialogs
import QtQuick.Layouts
import QtQuick.Controls 2.4

has an error:

[12:56:31] [critical] file:///D:/Downloads/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:14 Calendar is not a type 

The modification:

import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.3
import QtQuick.Controls
[13:00:27] [critical] file:///D:/Downloads/QOwnNotes/Data/scripts/journal-entry/calendar-window.qml:1 module "QtQuick.Dialogs" version 1.2 is not installed 

lambertlulala avatar Jul 31 '25 04:07 lambertlulala