Results 1 to 5 of 5

Thread: [QT]Push button-no action

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    5

    Default Re: [QT]Push button-no action

    Maybe i write wrong. When i run my program nth happend when i clicked on button. When i uncomment in
    Osm_Sqlite::Create_clean_database() :

    section:

    query.exec("select * from tb11");
    while (query.next())
    {
    QString name = query.value(0).toString();
    qDebug() << name;
    }

    i should have sth print but nth happen

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: [QT]Push button-no action

    If you use the database like this:

    Qt Code:
    1. QSqlDatabase::database().transaction();
    To copy to clipboard, switch view to plain text mode 
    You need to set a connection name.

    Otherwise, try:

    Qt Code:
    1. db.transaction();
    To copy to clipboard, switch view to plain text mode 

    And the same with commit();

Similar Threads

  1. Hareware Push Button
    By mickeyk191 in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 12:41
  2. A very small push button
    By Gnurou in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2009, 03:04
  3. Line edit and push button
    By dela in forum Newbie
    Replies: 1
    Last Post: 10th December 2008, 16:10
  4. shape of push button
    By Seema Rao in forum Qt Programming
    Replies: 23
    Last Post: 2nd April 2008, 01:05
  5. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31

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.