(C++) Wine fixme 1: displaying a QDialog
February 24, 2017 · View on GitHub
(C++)
Wine fixme 1: displaying a QDialog
Wine fixme. Running the code displays the following text:
fixme:system:SetProcessDPIAware stub! fixme:win:FlashWindowEx 0x11df02c
Technical facts
Operating system(s) or programming environment(s)
Qt Creator 2.5.2
- G++ 4.7.2
Libraries used:
Qt project file: CppWineFixme1.pro
QT += core gui QMAKE_CXXFLAGS += -std=c++11 -Wall -Wextra -Werror TEMPLATE = app SOURCES += \ qtmain.cpp HEADERS += OTHER_FILES += \ Licence.txt \ crosscompiletowindows.sh
qtmain.cpp
#include <QApplication> #include <QDialog> int main(int argc, char *argv[]) { QApplication a(argc, argv); QDialog d; d.show(); return a.exec(); } /* Screen output: fixme:system:SetProcessDPIAware stub! fixme:win:FlashWindowEx 0x11df02c */
crosscompiletowindows.sh
#!/bin/sh #From http://richelbilderbeek.nl/CppQtCrosscompileToWindowsExample15.htm echo "Cross compiling to Windows" echo "1/2: Creating Windows makefile" i686-pc-mingw32-qmake CppWineFixme1.pro echo "2/2: making makefile" make echo "Done cross compiling, starting Windows executable with Wine" cd release wine CppWineFixme1.exe