Results 1 to 20 of 26

Thread: QSqlQuery and QLineEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Porto Alegre
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: QSqlQuery and QLineEdit

    Quote:
    Originally Posted by GuL View Post
    ok, but
    if everything is ok, why QLineEdit doesn't show the result?
    you showed error message on console "driver not loaded". doesn't this error appear anymore?
    No, it doesnt. I have changed your code in order to compile and that error happened. Than I changed it again and it worked!

    Quote:
    Originally Posted by GuL View Post
    what about Signals and Slots?
    what slots and signals?
    Should I connect pushbutton to qlineedit?
    if your answer is yes,
    Qt Code:
    1. QObject::connect(pushButton, SIGNAL(clicked()), nameEdit, SLOT( ????????? ));
    To copy to clipboard, switch view to plain text mode 

    what should be the slot for nameEdit? I'm using the Designer to create the interface.

    Renan

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: QSqlQuery and QLineEdit

    for what purpose do you need this connection?

  3. #3
    Join Date
    Aug 2008
    Location
    Porto Alegre
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: QSqlQuery and QLineEdit

    I thought I would need it to make the result to show in the QLineEdit. -- Now I know it isn't necessary.

    But my problem still persist, no result in QLineEdit.

    Any ideas?

    Renan

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: QSqlQuery and QLineEdit

    check the result of your query in sqlbrowser which is located in QTDIR/demos/sqlbrowser.

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.