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. Getting an HBITMAP
Qt 6.11 is out! See what's new in the release blog

Getting an HBITMAP

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CodingCat
    wrote on last edited by
    #1

    Hi,

    I'm developing an application for windows, and I want to export some QPixmaps as frames of a video. To use that I'm using the VFW (Video For Windows) api. However, the API is expecting HBITMAPS. I see there used to exist a method QPixmap::toWinHBITMAP, but it has been removed in the latest version of Qt.

    After googling a bit, I noticed there's another function now: qt_pixmapToWinHBITMAP, or at least that's what I think. I don't seem to be able to use it, I added its prototype manually, but the linker complains that it can't find it.

    So, I have a few questions now. Is there a better way to create a video from Qt on Windows? if there isn't, what do I need to do to make qt_pixmapToWinHBITMAP visible to the linker, should I enable some module in my project file pehaps? should I do something else to get an HBITMAP from a QPixmap?

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      IIRC this function is part of "qtwinextras":http://qt.gitorious.org/qt/qtwinextras , you have to download and compile this module.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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