Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:01:41+00:00 2026-06-05T17:01:41+00:00

I have to design a GUI using Qt. I would like to draw multiple

  • 0

I have to design a GUI using Qt. I would like to draw multiple lines depicting relationships between two objects. It’s the same idea as matching a word with a definition by drawing a straight line (which might be a diagonal) between the two.

In my case it is an a label (with image inside of it) that needs to be matched with another label.

So we have something like this – http://dl.dropbox.com/u/46437808/DrawLines.png

And I want to add lines to make it look something like this http://dl.dropbox.com/u/46437808/DrawLines2.png

I need to do this in run time because the relationship will be changing based on different factors.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:01:43+00:00Added an answer on June 5, 2026 at 5:01 pm

    Do you need interaction or is this just an image that the user needs to see based on other information? If it’s just a static image, I would simply draw it onto a QImage and show it. That way you have complete control over how things are drawn. So you can either cache the relationship diagrams you need ahead of time, or just draw them on the fly onto the QImage based on the relationship that needs to be displayed at the time. You can look at Qt’s painting example for some ideas on how to accomplish what you need.

    If you need interactivity, I would probably go with the Graphics View Framework. This way if you need push buttons, check boxes, etc. for any reason you can use the QGraphicsProxyWidget to get them, or you can just make your own from QGraphicsItem subclasses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a design like this: Object GUI has two objects: object aManager
I have this design which I cannot seem to get right, I would like
i have this GUI screen shots from the design team which i needs to
I have a design of activities like this I have one main activity and
I have to design a database which will allow me store data in multiple
OK i am using eclipse and its GUI editor and i have a string
I have 2 modules: BrowserLibrary and BrowserViewer. Browser contains gui like any browser should.
I have created a GUI in Java using swings with the help of Netbeans
I have a problem with keeping a GUI responsive using PyQt and Qthreads. What
I have a question about GUI design, specifically with Java Swing and creating clean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.