Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt draw into buffer instead of widget.
Forum Updated to NodeBB v4.3 + New Features

Qt draw into buffer instead of widget.

Scheduled Pinned Locked Moved Unsolved Game Development
4 Posts 2 Posters 1.4k 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.
  • A Offline
    A Offline
    Alatriste
    wrote on last edited by
    #1

    is there any possibility to draw Qt elements(like button, menu and e.t.c) in buffer instead of widget?

    for example: Create some QPushButton and store button pixel data into buffer and do not render on widget?

    raven-worxR 1 Reply Last reply
    0
    • A Alatriste

      is there any possibility to draw Qt elements(like button, menu and e.t.c) in buffer instead of widget?

      for example: Create some QPushButton and store button pixel data into buffer and do not render on widget?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Alatriste

      QPixmap pixmap(widget->size());
      widget->render(&pixmap);
      

      --- 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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alatriste
        wrote on last edited by
        #3

        can I render into GPU buffer? by setting GLWidget or QOpenGLFramebuffer into QPaintDevice ?

        raven-worxR 1 Reply Last reply
        0
        • A Alatriste

          can I render into GPU buffer? by setting GLWidget or QOpenGLFramebuffer into QPaintDevice ?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Alatriste
          sorry, i personally don't have any experience with OpenGL.
          Maybe someone else can answer this question for you?

          --- 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

          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