Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved Write text in graphical item & Parent child relationship between graphical item....

    General and Desktop
    2
    5
    737
    Loading More Posts
    • 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.
    • S
      ShrikantAmbade last edited by

      Hello,

      How to write text into graphical item and also how to form parent child relationship and get position of parent item so that child item can be drawn inside parent item and also provide text inside the child item.
      Many Thanks

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @ShrikantAmbade last edited by

        @ShrikantAmbade
        what do you mean with "graphical item"?
        Do you mean QGraphicsItem?

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        S 1 Reply Last reply Reply Quote 0
        • S
          ShrikantAmbade @raven-worx last edited by

          @raven-worx yes

          raven-worx 1 Reply Last reply Reply Quote 0
          • raven-worx
            raven-worx Moderators @ShrikantAmbade last edited by raven-worx

            @ShrikantAmbade
            have you looked at QGraphicsItem API?
            It has all methods pointed out very clearly: setParent(), setPos()

            And there is also a QGraphicsTextItem available

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            S 1 Reply Last reply Reply Quote 1
            • S
              ShrikantAmbade @raven-worx last edited by

              @raven-worx Thank you dear I will look into it

              1 Reply Last reply Reply Quote 0
              • First post
                Last post