Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Wine 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

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

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



 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml