Show() private method

private Show ( ) : void
return void
Exemplo n.º 1
0
        public void ShowLightbox(QWidget widget)
        {
            if (m_LightboxChild != null)
                throw new InvalidOperationException("Lightbox is already visible");

            var layout = (QBoxLayout)m_LightboxWidget.Layout();
            m_LightboxChild = widget;
            widget.SetParent(m_LightboxWidget);
            layout.AddWidget(widget);
            widget.Show();

            base.Widget(1).Enabled = false;

            m_LightboxWidget.Show();
            base.CurrentIndex = 0;
        }
Exemplo n.º 2
0
Arquivo: t3.cs Projeto: KDE/qyoto
    public static int Main(String[] args)
    {
        QApplication app = new QApplication(args);

        QWidget window = new QWidget();
        window.Resize(200, 120);

        QPushButton quit = new QPushButton( "Quit", window );
        quit.Font = new QFont( "Times", 18, (int) QFont.Weight.Bold );
        quit.SetGeometry(10, 40, 180, 40);

        QObject.Connect( quit, SIGNAL("clicked()"), app, SLOT("quit()") );

        window.Show();
        return QApplication.Exec();
    }