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 to display a widget inside another widget?

How to display a widget inside another widget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 898 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.
  • NiagarerN Offline
    NiagarerN Offline
    Niagarer
    wrote on last edited by
    #1

    In my case the existing widget is a QGraphicsItem, but I want to add some other widgets (a plain text edit and stuff) inside it. How can I do this?
    Thanks for answers!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      QGraphicsItem is not a widget, You will not be able Widget to item. You can look at QGraphicsProxyWidget to embed the Widgets into scene. It may help in someway.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      NiagarerN 1 Reply Last reply
      3
      • dheerendraD dheerendra

        QGraphicsItem is not a widget, You will not be able Widget to item. You can look at QGraphicsProxyWidget to embed the Widgets into scene. It may help in someway.

        NiagarerN Offline
        NiagarerN Offline
        Niagarer
        wrote on last edited by
        #3

        @dheerendra
        Oh, ok, thanks I will take a look

        1 Reply Last reply
        0
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Niagarer please don't forget to mark your post as solved when you're done with the topic

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          NiagarerN 1 Reply Last reply
          0
          • Pablo J. RoginaP Pablo J. Rogina

            @Niagarer please don't forget to mark your post as solved when you're done with the topic

            NiagarerN Offline
            NiagarerN Offline
            Niagarer
            wrote on last edited by Niagarer
            #5

            @Pablo-J.-Rogina
            Yes, but I am not yet... I will mark when I am able to post a full working answer, how I solved my problem here.

            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