How to make progress bar in lineedit like in browser example????
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???
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.
Qt Code:
UrlLineEdit *urlLineEdit; ui->toolBar_2->addWidget(urlLineEdit);To copy to clipboard, switch view to plain text mode
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.Qt Code:
connect(webView, SIGNAL(loadProgress(int)), this, SLOT(update()));To copy to clipboard, switch view to plain text mode
How to connect my webWiew loadProgress signal with lineEdits progress bar??
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?
Bookmarks