Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I make a connection of Qt to X11 to show the Application GUI framwework in QML or in QWidget ?
Forum Updated to NodeBB v4.3 + New Features

How can I make a connection of Qt to X11 to show the Application GUI framwework in QML or in QWidget ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 664 Views 2 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.
  • Y Offline
    Y Offline
    yegender
    wrote on last edited by
    #1

    Hey Guys, I am making a window manager. For window decoration I want to use Qt. I will prefer to use QML to me as it's more stylish, fast etc. etc. But if it's not possible in Qt Quick or possible in only QtWidgets then I will use QtWidgets.

    Now, I want to make connection between X and Qt to get the Application GUI Framework and embed it into my QML or QtWidget. Does it's possible and if it is possible How can I do ?

    Sorry for my mistakes, I am new at window manager development and didn't get ideas.

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you mean something like a desktop environment like KDE or LXQt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yegender
        wrote on last edited by
        #3

        Exactly, But not a full desktop enviornment just a window manger

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I think you are not realizing that "just a window manager" is not as easy as you might think.

          kwin is the one for KDE.
          sddm for LXQt.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yegender
            wrote on last edited by
            #5

            I knew it isn't too much easy. But I know I can do. As I am writting an Operating System

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wrosecrans
              wrote on last edited by
              #6

              What problem are you running into? There are several existing X11 window managers that use Qt, so nothing in Qt should prevent it from working. Ultimately, a WM is just another X11 client like any other application. There's nothing inherently "special" about it. A "connection between X and Qt" would basically just be creation a QApplication object. That will create a connection to the X Display.

              QWindow can go to/frame a native window Handle: https://doc.qt.io/qt-5/qwindow.html#fromWinId You'll need something like that if you want to do things like reparenting windows from other processes

              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