Skip to content

lit-uriy/QLightBoxWidget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QLightBoxWidget

QLightBoxWidget is the Qt desktop widget analog javascript LightBox.

Screenshot

Using:

Use QLightBoxWidget - it's easy. First you need to create instance and configure it:

//
// Create instance
//
QLightBoxWidget* lightBox = new QLightBoxWidget(this);

//
// Create widgets that lightBox must contain
//
QLabel* lbTitle = new QLabel(tr("QLightBoxWidget"));
lbTitle->setStyleSheet("font-size: 28px; font-weight: bold; color: white");
// ... 
QPushButton* lbClose = new QPushButton(tr("Close"));
//
// ... layout
//
QGridLayout* lbLayout = new QGridLayout;
lbLayout->addWidget(lbTitle, 1, 1);
// ...
lightBox->setLayout(lbLayout);
//
// ... and configure them
//
connect(lbClose, SIGNAL(clicked()), lightBox, SLOT(hide()));

And when you need show it, just do that:

QPushButton* showLB = new QPushButton(tr("Show"));
connect(showLB, SIGNAL(clicked()), lightBox, SLOT(show()));

// or

lightBox->show();

Build

Qt 4.6 and greater, or Qt 5.0 and greater

License

GNU LGPL v3

About

Qt Widget analog javascript LightBox.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.3%
  • Prolog 6.7%