Results 1 to 14 of 14

Thread: QSqlQuery not working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    26
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlQuery not working

    By the way, does anyone knows how to create a button (flat would be nice) that drops a drop menu?
    Last edited by BrainStorm; 16th August 2010 at 00:43. Reason: spelling corrections

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QSqlQuery not working

    Quote Originally Posted by BrainStorm View Post
    i see.. but i think using QSqlQuery::next(); once is the same as using QSqlQuery::first();
    Yes, missed that, since in the code snippet the return was not checked if it is valid.

    Quote Originally Posted by BrainStorm View Post
    By the way, does anyone knows how to create a button (flat would be nice) that drops a drop menu?
    Use a normal buttun and set a menu via QPushButton::setMenu(). for flat use QPushButton::setFlat().

  3. The following user says thank you to Lykurg for this useful post:

    BrainStorm (16th August 2010)

  4. #3
    Join Date
    Aug 2010
    Posts
    26
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlQuery not working

    Quote Originally Posted by Lykurg View Post
    Use a normal buttun and set a menu via QPushButton::setMenu(). for flat use QPushButton::setFlat().
    Ohh.. i see ^^ thanks, i was using QMenu::popup() with QPushButton::pos() :p

Similar Threads

  1. QSqlQuery
    By yasher in forum Qt Programming
    Replies: 2
    Last Post: 23rd July 2010, 14:25
  2. QSqlquery
    By codeman in forum Qt Programming
    Replies: 10
    Last Post: 4th June 2009, 12:57
  3. what is going on a QSqlQuery?
    By mismael85 in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2008, 13:35
  4. QSqlQuery problem
    By MarkoSan in forum Qt Programming
    Replies: 14
    Last Post: 14th January 2008, 22:50
  5. QSqlQuery error
    By skuda in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2007, 08:43

Tags for this Thread

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.