mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
858 B
30 lines
858 B
using System; |
|
using Qt.Gui; |
|
|
|
using Mono.VisualC.Interop; |
|
|
|
namespace QtTest { |
|
class MainClass { |
|
public static void Main (string[] args) |
|
{ |
|
//System.Diagnostics.Debug.Assert(false, "Whao"); |
|
using (QApplication app = new QApplication ()) { |
|
using (QPushButton hello = new QPushButton ("Hello world!"), |
|
hello2 = new QPushButton ("Another button")) { |
|
|
|
hello.Resize (100, 30); |
|
hello2.Resize (200, 30); |
|
|
|
//CppLibrary.SaveInteropAssembly (); |
|
hello.Visible = true; |
|
hello2.Visible = true; |
|
|
|
app.Exec (); |
|
|
|
|
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
|