Proof of concept - QWebkit + Scrolling text on top
Hi,
I want to create a proof of concept of the following:
- In the background I need a webkit widget showing a web page in full screen.
- On top of this webpage I need a smooth scrolling text.
Can someone give me advise of which widgets (QLabel, QWebkit, …?) and which technologies (QAnimation, QOpenGL, …?) I best use to implement this proof of concept?
Thanks in advance!
Stijn.
1 reply
Hi all,
Is there no one who can help me futher with this?
I implemented a scrolling text like this (see below), but it is very choppy. Does someone knows why, or could help me with this?
- {
- elapsed = 0;
- setFixedSize(1080, 200);
- setAutoFillBackground(false);
- }
- //! [0]
- //! [1]
- void GLWidget::animate()
- {
- repaint();
- }
- //! [1]
- //! [2]
- {
- QPainter painter;
- painter.begin(this);
- helper->paint(&painter, event, elapsed);
- painter.end();
- }
- Helper::Helper()
- {
- circlePen.setWidth(1);
- textFont.setPixelSize(150);
- xpos = 0;
- }
- //! [0]
- //! [1]
- {
- painter->fillRect(event->rect(), background);
- painter->setPen(textPen);
- painter->setFont(textFont);
- painter->drawText(1080 - xpos,120,"THIS IS SAMPLE TEXT");
- xpos++;
- xpos = 0;
- }
- }
You must log in to post a reply. Not a member yet? Register here!
