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. Getting widget from other app?
Forum Updated to NodeBB v4.3 + New Features

Getting widget from other app?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.3k 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.
  • N Offline
    N Offline
    never_ever
    wrote on last edited by
    #1

    Hi,
    I have my app i.e. App1, where I have some QWidgets (as containers). In other app i.e App2 there are some other widgets like QLabel, QCheckBox and so on. That other app should have a possibility to show its widgets in my app.
    Any idea how can I do it?
    I tried to get WId of picked widget (by using winId() method) and create windowContainer for that widget, but there is many problems related to it.

    I can't do this by using QWidget::find(WId id) because this is in-process, and that two apps (App1 and App2) are two separetly processes.

    I don't know if I wrote it clearly, so if something is to explain I will try to do this.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      archqt
      wrote on last edited by
      #2

      Hi,
      why do you need to do that ?
      Thanks

      1 Reply Last reply
      0
      • N Offline
        N Offline
        never_ever
        wrote on last edited by
        #3

        I need it to display widgets from other apps in my app.
        The problem is that I never know what kind of widgets it would be. Only what I can get from that external app (not the same process as mine) is WId of widget that should be displayed.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DBoosalis
          wrote on last edited by
          #4

          Can you get by with just an image of what is displayed. That's easy enough to send to another app. Otherwise I would suggest you write your own serializer and deserializer of the widget you want to recreate. It would not be trivial to write such methods for widgets, I believe it would be much easier to do with QML.

          [quote author="never_ever" date="1417017105"]I need it to display widgets from other apps in my app.
          The problem is that I never know what kind of widgets it would be. Only what I can get from that external app (not the same process as mine) is WId of widget that should be displayed.[/quote]

          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