Qt Forum

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

    How to properly use QPainter in custom Widgets (inherits from QWidget).

    General and Desktop
    1
    1
    1339
    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.
    • E
      Exxtay last edited by

      I'm on the way to create my interpretation of Nassi-Shneiderman diagram.
      It's like my "exam" what i choose to myself to prove that i learned at least basics of Qt programming.
      Nassi-Shneiderman diagram looks like follows: http://www.thern.org/projects/nassi-schneiderman/ProblemSolvingTechniques_files/ns-example2.gif

      And i've got little problem:
      When i use QPainter to draw lines for multiple choise statement for example, i cannot force drawed lines stick to top corners and middle of bottom of widget, while i resizing the widget.

      Probably the way to solve that problem is use Widget Resize Event, but how to do that properly? Or here is a better way to solve that problem?

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