Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

wyyrepo/QLightBoxWidget

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.