Results 1 to 5 of 5

Thread: Logging to a file and using same model for diff views

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    301
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    46
    Thanked 3 Times in 3 Posts

    Default Re: Logging to a file and using same model for diff views

    Ok, will just use QFile.

    Thought using a model for different types of view would be strange, unless the views were similar. Guess I'd have to have two different models that share the data as you suggested.

    Thanks,
    Steve

  2. #2
    Join Date
    Feb 2007
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 2 Posts

    Default Re: Logging to a file and using same model for diff views

    I thought that was the point of the Model/View programming model. Assuming a model can fulfill the needs of the views, you can have all sorts of views pointing to the same model.

    -joe

    Quote Originally Posted by steg90 View Post
    Ok, will just use QFile.

    Thought using a model for different types of view would be strange, unless the views were similar. Guess I'd have to have two different models that share the data as you suggested.

    Thanks,
    Steve

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.