Results 1 to 11 of 11

Thread: Using QDataBrowser

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Location
    Slovenia
    Posts
    33
    Thanks
    5
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Using QDataBrowser

    Quote Originally Posted by jacek
    Yes, QSqlForm only passes data between widgets and QSqlRecord.
    But how do I create widgets if I don't know exact number of them?
    Is it even possible to create them in FOR loop that will run from 1 to 'number of fields'? And how do I postion them if I don't know the number of them?

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Using QDataBrowser

    QSqlrecord has method count() ...use it
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using QDataBrowser

    Quote Originally Posted by Lebowski
    And how do I postion them if I don't know the number of them?
    You can use layouts for this. For example a grid layout with two columns --- one for a label and one for a widget.

    Another solution is to use a QTable or QListView, but you won't be able to use the QSqlForm with it.

Similar Threads

  1. QDataBrowser and QSqlCursor
    By ederbs in forum Qt Programming
    Replies: 8
    Last Post: 22nd October 2006, 18:25

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.