Results 1 to 4 of 4

Thread: struct type object with signal/slot method

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: struct type object with signal/slot method

    Anyway, you created a standard vector... why not QVector?
    No reason except that I use the C++ standard template library (STL) in preference to the Qt library when equivalent classes exist in both. Much of the non-GUI code I write has to be portable as libraries used in non-Qt applications, so I have just adopted the habit of using the STL everywhere possible. If I were to write something using Qt container classes that I later decided should be shared in a library, then I have a bunch of rewriting and testing to convert it to STL when I could have done it that way in the first place.

    That said, QVector has the same semantics as std::vector and can be used in any of the STL or boost algorithms that operate on containers that implement random iterator access.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    eliosm (20th April 2017)

Similar Threads

  1. Replies: 1
    Last Post: 14th August 2014, 17:08
  2. Replies: 4
    Last Post: 26th June 2014, 18:27
  3. Signal/slot or direct method call within a class
    By mike_the_tv in forum Newbie
    Replies: 6
    Last Post: 11th March 2010, 18:49
  4. Replies: 3
    Last Post: 15th April 2007, 19:16
  5. How Signal/slot is type-safe????
    By Shuchi Agrawal in forum Newbie
    Replies: 6
    Last Post: 10th March 2007, 04:59

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.