#include "baseform.h"
#include "pb1.h"
{
frameH->setAutoFillBackground ( true );
frameH
->setFrameShape
( QFrame::StyledPanel );
frameH
->setFrameShadow
( QFrame::Raised );
frameH
->setPalette
(QColor(200,
200,
200));
teHBox->setGeometry ( 10, 10, 330, 410 );
teHBox->setReadOnly(true);
}
///===================================================end of constructor
void PB1::slotPb1Functions()
{
static bool flag = false;
if(flag == false)
{
emit getDrawingFrameSize(&W, &H);
frameH->setGeometry(W - 350, H - 420, 350, 430);
emit getTextListItem(2, &k);
teHBox->setPlainText(k);
emit showFrame(frameH);
flag = true;
}
else
{
emit hideFrame(frameH);
flag = false;
}
}
#include "baseform.h"
#include "pb1.h"
PB1::PB1 ( QWidget *parent ) : QWidget(parent)
{
frameH = new QFrame();
frameH->setAutoFillBackground ( true );
frameH->setFrameShape ( QFrame::StyledPanel );
frameH->setFrameShadow ( QFrame::Raised );
frameH->setPalette(QColor(200, 200, 200));
teHBox = new QTextEdit ( frameH );
teHBox->setGeometry ( 10, 10, 330, 410 );
teHBox->setReadOnly(true);
}
///===================================================end of constructor
void PB1::slotPb1Functions()
{
static bool flag = false;
if(flag == false)
{
emit getDrawingFrameSize(&W, &H);
frameH->setGeometry(W - 350, H - 420, 350, 430);
emit getTextListItem(2, &k);
teHBox->setPlainText(k);
emit showFrame(frameH);
flag = true;
}
else
{
emit hideFrame(frameH);
flag = false;
}
}
To copy to clipboard, switch view to plain text mode
I've gone through the examples and demos but have not found one that does exactly what I want to do.
Bookmarks