Advertisement
hman

Qyoto problem using oxygen/qtcurve theme

Feb 2nd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2. using QtCore;
  3. using QtGui;
  4.  
  5. namespace qtcoretest
  6. {
  7.     public class QyotoApp: QWidget
  8.     {
  9.  
  10.         [STAThread]
  11.         public static int Main(string[] args)
  12.         {
  13.             new QApplication(args);
  14.             new QyotoApp();
  15.             return QApplication.Exec();
  16.         }
  17.  
  18.  
  19.         [Q_SLOT]
  20.         private void OpenDialog()
  21.         {
  22.             QFileDialog.GetOpenFileName (this, "test open file dialog", null, "*.*");
  23.         }
  24.  
  25.         public QyotoApp()
  26.         {
  27.             WindowTitle = "QtCore Test";    
  28.             Resize(250, 150);
  29.             Move(300, 300);
  30.  
  31.             QPushButton quit = new QPushButton("Open File Dialog", this);
  32.             Connect(quit, SIGNAL("clicked()"), this, SLOT("OpenDialog()"));
  33.             quit.SetGeometry(50, 40, 160, 50);
  34.  
  35.             Show();
  36.         }
  37.  
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement