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. Qt Quick and window handle

Qt Quick and window handle

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.3k 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.
  • beeckscheB Offline
    beeckscheB Offline
    beecksche
    wrote on last edited by
    #1

    Hi,
    for an external library i need to set a HWND.

    With QWidgets i used to do:

    QWidget *myWidget = new QWidget();
    HWND monitorHandle = reinterpret_cast<HWND>(myWidget->winId());
    int monitorID = CreateLiveViewW(monitorHandle);
    

    Now i want to use this with Qt Quick. Can i get the HWD from a quick item like a rectangle?

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

      Hi
      Im not into QML but are you sure a
      simple Rectangle will have a HWND?

      beeckscheB 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Im not into QML but are you sure a
        simple Rectangle will have a HWND?

        beeckscheB Offline
        beeckscheB Offline
        beecksche
        wrote on last edited by
        #3

        @mrjj
        No i'm definitively not sure. It was just my first thought.
        But you can fill the rectangle with a color, so maybe it is also possible to fill that rectangle with that live-view image.

        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