Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Wich class replace QextSerial enumerator ? SOLVED
Forum Updated to NodeBB v4.3 + New Features

Wich class replace QextSerial enumerator ? SOLVED

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 2.6k Views 1 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.
  • M Offline
    M Offline
    MONTIN
    wrote on last edited by
    #1

    Hi Hall,

    It seems that with QT51 and QserialPort the class QextSerialEnumerator is not available as it was in older version. (i have installed qserialPort, the examples works perfectly but i can't find qextserialenumerator.h on my hard disk, so my project does not compile.

    What is now the mean to find the available COM ?

    Thanks

    Montin

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi MONTIN.
      QextSerialEnumerator not belongs to QSerialPort. Take a look to a "Wiki":http://qt-project.org/wiki/QtSerialPort .
      For finding available ports you can use:
      @foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
      qDebug() << "Name : " << info.portName();
      qDebug() << "Description : " << info.description();
      qDebug() << "Manufacturer: " << info.manufacturer();

          // Example use QSerialPort
          QSerialPort serial;
          serial.setPort(info);
          if (serial.open(QIODevice::ReadWrite))
              serial.close();
      }@
      
      1 Reply Last reply
      0
      • M Offline
        M Offline
        MONTIN
        wrote on last edited by
        #3

        Hi qxoz,

        Thanks. I try this

        Montin

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MONTIN
          wrote on last edited by
          #4

          Thanks it works.

          God bless you qxoz !

          Montin

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qxoz
            wrote on last edited by
            #5

            You're welcome :)
            Also, can you please add [Solved] to caption of thread.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MONTIN
              wrote on last edited by
              #6

              [quote author="MONTIN" date="1391763097"]Thanks it works.

              God bless you qxoz !

              Montin[/quote]

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MONTIN
                wrote on last edited by
                #7

                https://qt-project.org/search/tag/solved

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qxoz
                  wrote on last edited by
                  #8

                  I meant change name of thread "wich class replace QextSerial enumerator ?" to "[Solved]wich class replace QextSerial enumerator ?"

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MONTIN
                    wrote on last edited by
                    #9

                    Shame on me but how can i do that ?

                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      qxoz
                      wrote on last edited by
                      #10

                      Edit first post of this thread.

                      1 Reply Last reply
                      0

                      • Login

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