Results 1 to 10 of 10

Thread: Progress Bar in LineEdit

  1. #1
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Smile Progress Bar in LineEdit

    How to make progress bar in lineedit like in browser example????

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Progress Bar in LineEdit

    Maybe you should look at the example sources instead of asking the question?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Progress Bar in LineEdit

    Maybe there is more easyer way to create progress bar in line edit???

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Progress Bar in LineEdit

    Please define 'easier'.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Progress Bar in LineEdit

    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:
    1. UrlLineEdit *urlLineEdit;
    2.  
    3. ui->toolBar_2->addWidget(urlLineEdit);
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Progress Bar in LineEdit

    Declaring a pointer to an object and creating an object are two different things.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Progress Bar in LineEdit

    Of i forgot.
    In the example loadProgress signal was connected to update() slot.
    Qt Code:
    1. connect(webView, SIGNAL(loadProgress(int)),
    2. this, SLOT(update()));
    To copy to clipboard, switch view to plain text mode 
    But i cant find such slot in urllineedit.cpp.

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

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Progress Bar in LineEdit

    Quote Originally Posted by TJSonic View Post
    But i cant find such slot in urllineedit.cpp.
    It's in QWidget.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Progress Bar in LineEdit

    Ok i have connected my webViews signal loadProgress to update slot and when page loads, progressBar in Line Edit wont update.

  10. #10
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: Progress Bar in LineEdit

    So i have connected them, but here is the one more problem i can not edit text in urlLineEdit. What it can be?

Similar Threads

  1. How to use progress bar
    By Ashwani in forum Newbie
    Replies: 6
    Last Post: 10th September 2010, 15:19
  2. LineEdit.
    By Rewo in forum Newbie
    Replies: 17
    Last Post: 2nd July 2010, 09:37
  3. Replies: 4
    Last Post: 11th March 2008, 11:44
  4. Reg - Progress bar
    By suresh in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2006, 15:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.