working ish
This commit is contained in:
1 parent
ba85d9658d
commit
7d58533539
14 files changed
+367
-130
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import QtQuick
|
||||
import QtWebEngine
|
||||
import Quickshell
|
||||
|
||||
ShellRoot {
|
||||
// Ensure the WebEngine is initialized
|
||||
Component.onCompleted: WebEngine.initialize()
|
||||
|
||||
PanelWindow {
|
||||
id: webWindow
|
||||
width: 800
|
||||
height: 600
|
||||
|
||||
// Background container
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#1e1e2e" // Match your desktop theme
|
||||
|
||||
// The embedded Web Page Component
|
||||
WebEngineView {
|
||||
anchors.fill: parent
|
||||
url: "https://quickshell.org" // The URL you want to embed
|
||||
|
||||
// Optional: Handle loading status
|
||||
onLoadingChanged: (loadingInfo) => {
|
||||
if (loadingInfo.status === WebEngineView.LoadFailedStatus) {
|
||||
console.log("Failed to load page: " + loadingInfo.errorString);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user