Questions tagged [qtwinextras]

QtWinExtra (Qt Windows Extras) provide classes and functions that enables the use of miscellaneous Windows-specific functions. For example, Qt objects can be converted to Windows object handles and DWM glass frames can be manipulated.

QtWinExtra (Qt Windows Extras) provide classes and functions that enables the use of miscellaneous Windows-specific functions. For example, Qt objects can be converted to Windows object handles and DWM glass frames can be manipulated.

In addition, one can use features introduced with , such as

  • Aero Peek
  • Jump Lists
  • a progress indicator on a taskbar button
  • a thumbnail toolbar etc.

The QtWin namespace provides functions to convert Qt objects of classes such as QPixmap or QImage to Windows HBITMAP or HICON handles, and vice versa.

This add-on module was introduced in Qt 5.2.

4 questions
12
votes
3 answers

Getting a HBITMAP from a QPixmap in QT5 (Windows)

Now that QPixmap::toWinHBITMAP() has been deprecated, I can't find a way to get an HBITMAP from a QPixmap (or QImage). Googling, I found there's a function called qt_pixmapToWinHBITMAP() which seems would do what I need, but I can't find what module…
Gato
  • 671
  • 5
  • 15
11
votes
3 answers

QWinTaskbarProgress won't show

I'm using windows7 and Qt5.3.0 I added below to my MainWindow's constructor but nothing shows on my taskbar. Did I miss something? QWinTaskbarProgress * pTaskbarProgress = new…
K--
  • 659
  • 1
  • 7
  • 18
4
votes
2 answers

What am I doing wrong with QWinTaskbarProgress?

I followed the examples I found to make use of the QWinTaskbarProgress. I created a standard Qt Widgets Application in Qt Creator (Qt 5.3.1) and my mainwindow.cpp looks like this: #include "mainwindow.h" #include…
Chris
  • 981
  • 4
  • 14
  • 29
3
votes
1 answer

How to use QtWinExtras in cross-platform application

Should i seperate module and header includes with conditionals like /// .pro file win32:QT += winextras /// .cpp file #ifdef Q_OS_WIN #include #endif /// ... later #ifdef Q_OS_WIN QWinTaskbarButton *taskbarButton = new…
useraged
  • 1,706
  • 17
  • 34