Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. onPaint at program start
Qt 6.11 is out! See what's new in the release blog

onPaint at program start

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 358 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.
  • T Offline
    T Offline
    The Smiling Mickey
    wrote on last edited by
    #1

    Hello,

    I've created an application which draws a line when a certain Key is pressed. This works fine but the annoying problem is the onPaint which is called at the program start. This means there is always a line in the canvas.

    How can I make sure that the onPaint is only called when a Key is pressed?

    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