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. Is it possible to fill color inside a bounding rectangle?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to fill color inside a bounding rectangle?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 185 Views
  • 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.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    Hi All,

    I am trying to fill color inside a bounding rectangle but am unable to do so. However, I've done the other way very easily; to make the boundary of the colored rectangle dashed.

    Can someone help me with the first option?

    Any help will be highly appreciated!

    Regards
    Swati

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    jsulmJ 1 Reply Last reply
    0
    • Swati777999S Swati777999

      Hi All,

      I am trying to fill color inside a bounding rectangle but am unable to do so. However, I've done the other way very easily; to make the boundary of the colored rectangle dashed.

      Can someone help me with the first option?

      Any help will be highly appreciated!

      Regards
      Swati

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Swati777999 There are various https://doc.qt.io/qt-5/qpainter.html#fillRect methods - aren't those what you need?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved