Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How does the Window's Flag "Qt::Desktop"works?
Forum Updated to NodeBB v4.3 + New Features

How does the Window's Flag "Qt::Desktop"works?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 200 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tubbadu
    wrote on last edited by
    #1

    hello there! I'm experimenting on creating a really simple desktop environment in Qt following this guide and I'm trying to create a Qt app to just show a wallpaper and with a few buttons to run some application

    I'd like to do this in QML, using C++ just where needed (e.g.: run processes)

    in the Window Type docs there is the Qt::Desktop flag:

    Qt::Desktop | Indicates that this widget is the desktop. This is the type for QDesktopWidget.

    so I tried setting:

    Window{
        id: window
        flags: Qt.Desktop
        Rectangle{
            color: "red"
        }
    }
    

    it builds correctly, but when I try to run it it just displays nothing

    What is the correct way to use this? are there better ways to do this?

    I know I'm probably not going to finish this project, it's just meant to learn something new :D

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved