Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Class is a thin wraper above QLabel
Class can be used in mail clients, in QStakedWidget where many pages or content can take place.
Class has one interfase - ISetMaxLinkNumber(int) where you can define maximal number of pages in your link list.
And class emits signal linkPressed(int) with numerical page number.
9 years ago
1. Interface become changed: ISetMaxLinkDiapazon(int min, int max) now you must set minimimum number and maximum number for link range
2. You can specify negative range of link label, for example:
linkLabel->ISetMaxLinkDiapazon(-100, 101);
Range will be from -100 to 101
9 years ago
1. Interface become changed: ISetMaxLinkDiapazon(int min, int max) now you must set minimimum number and maximum number for link range
2. You can specify negative range of link label, for example:
linkLabel->ISetMaxLinkDiapazon(-100, 101);
Range will be from -100 to 101
daimonKor
9 years ago
QStackedWidget * stack = new QStackedWidget(&widget);
stack->addWidget(new QLabel("0"));
stack->addWidget(new QLabel("1"));
stack->addWidget(new QLabel("2"));
stack->addWidget(new QLabel("3"));
mainLayout->addWidget(stack);
mainLayout->addWidget(linkLabel);
QObject::connect(linkLabel,SIGNAL(linkPressed(int)),stack,SLOT(setCurrentIndex ( int )));
widget.setLayout(mainLayout);
i can not open a stackWidget index 0
Report
bloodshadow
9 years ago
range can be negative now
Report
daimonKor
9 years ago
Report
daimonKor
9 years ago
QStackedWidget * stack = new QStackedWidget(&widget);
stack->addWidget(new QLabel("0"));
stack->addWidget(new QLabel("1"));
stack->addWidget(new QLabel("2"));
stack->addWidget(new QLabel("3"));
mainLayout->addWidget(stack);
mainLayout->addWidget(linkLabel);
QObject::connect(linkLabel,SIGNAL(linkPressed(int)),stack,SLOT(setCurrentIndex ( int )));
widget.setLayout(mainLayout);
i can not open a stackWidget index 0
Report
daimonKor
9 years ago
QStackedWidget * stack = new QStackedWidget(&widget);
stack->addWidget(new QLabel("0"));
stack->addWidget(new QLabel("1"));
stack->addWidget(new QLabel("2"));
stack->addWidget(new QLabel("3"));
mainLayout->addWidget(stack);
mainLayout->addWidget(linkLabel);
QObject::connect(linkLabel,SIGNAL(linkPressed(int)),stack,SLOT(setCurrentIndex ( int )));
widget.setLayout(mainLayout);
i can not open a stackWidget index 0
Report
daimonKor
9 years ago
Report
daimonKor
9 years ago
Report