PDA

View Full Version : Progress Bar in LineEdit



TJSonic
21st October 2010, 21:42
How to make progress bar in lineedit like in browser example????

wysota
21st October 2010, 21:51
Maybe you should look at the example sources instead of asking the question?

TJSonic
22nd October 2010, 12:27
Maybe there is more easyer way to create progress bar in line edit???

wysota
22nd October 2010, 12:33
Please define 'easier'.

TJSonic
26th October 2010, 20:16
Ok i have copied urllineedit.cpp and urllineedit.h from the example to my project. Then created UrlLineEdit widget and added the widget to my toolbar. After compiling i have not seeing line edit it those toolbar.



UrlLineEdit *urlLineEdit;

ui->toolBar_2->addWidget(urlLineEdit);

wysota
26th October 2010, 20:18
Declaring a pointer to an object and creating an object are two different things.

TJSonic
27th October 2010, 14:28
Of i forgot.:(
In the example loadProgress signal was connected to update() slot.


connect(webView, SIGNAL(loadProgress(int)),
this, SLOT(update()));

But i cant find such slot in urllineedit.cpp.

How to connect my webWiew loadProgress signal with lineEdits progress bar??

wysota
27th October 2010, 14:34
But i cant find such slot in urllineedit.cpp.
It's in QWidget.

TJSonic
27th October 2010, 14:44
Ok i have connected my webViews signal loadProgress to update slot and when page loads, progressBar in Line Edit wont update.

TJSonic
27th October 2010, 22:08
So i have connected them, but here is the one more problem i can not edit text in urlLineEdit. What it can be?