Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVector question
Forum Updated to NodeBB v4.3 + New Features

QVector question

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 157 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kipalex
    wrote on last edited by
    #1

    Good afternoon!

    QVector question
    I write as in the example:

    QVector<QString> vec;
    vec.append("In Extremo");
    vec.append("Blackmore's Night");
    vec. append ( "Cul tus Ferox") ;
    

    But in the console when outputting through

    qDebug () << vec;
    

    I receive
    QList("In Extremo", "Blackmore's Night", "Cul tus Ferox")

    Paul ColbyP 1 Reply Last reply
    0
    • K kipalex

      Good afternoon!

      QVector question
      I write as in the example:

      QVector<QString> vec;
      vec.append("In Extremo");
      vec.append("Blackmore's Night");
      vec. append ( "Cul tus Ferox") ;
      

      But in the console when outputting through

      qDebug () << vec;
      

      I receive
      QList("In Extremo", "Blackmore's Night", "Cul tus Ferox")

      Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by Paul Colby
      #2

      Hi @kipalex,

      As per the Qt6 docs, as of Qt6

      QVector is an alias for QList.

      They were different classes in Qt5. You can read more about the changes here.

      Cheers.

      K 1 Reply Last reply
      4
      • Paul ColbyP Paul Colby

        Hi @kipalex,

        As per the Qt6 docs, as of Qt6

        QVector is an alias for QList.

        They were different classes in Qt5. You can read more about the changes here.

        Cheers.

        K Offline
        K Offline
        kipalex
        wrote on last edited by
        #3

        @Paul-Colby Thanx.

        1 Reply Last reply
        0
        • SGaistS SGaist has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved