How to make progress bar in lineedit like in browser example????
Printable View
How to make progress bar in lineedit like in browser example????
Maybe you should look at the example sources instead of asking the question?
Maybe there is more easyer way to create progress bar in line edit???
Please define 'easier'.
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.
Code:
UrlLineEdit *urlLineEdit; ui->toolBar_2->addWidget(urlLineEdit);
Declaring a pointer to an object and creating an object are two different things.
Of i forgot.:(
In the example loadProgress signal was connected to update() slot.
But i cant find such slot in urllineedit.cpp.Code:
connect(webView, SIGNAL(loadProgress(int)), this, SLOT(update()));
How to connect my webWiew loadProgress signal with lineEdits progress bar??
It's in QWidget.
Ok i have connected my webViews signal loadProgress to update slot and when page loads, progressBar in Line Edit wont update.
So i have connected them, but here is the one more problem i can not edit text in urlLineEdit. What it can be?