Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Duvida sobre o tipo de variavel
Forum Updated to NodeBB v4.3 + New Features

Duvida sobre o tipo de variavel

Scheduled Pinned Locked Moved Portuguese
2 Posts 2 Posters 1.3k 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.
  • L Offline
    L Offline
    lima_will
    wrote on last edited by
    #1

    Pessoal,

    Estou seguindo um exemplo do qextserial, quando ele pede para passar a configuração nessa linha de código:

    @PortSettings settings ={BAUD9600, DATA_8, PAR_NONE, STOP_1, FLOW_OFF, 10};@

    Os valores dentro das { } estão na cor roxa, qual é este tipo de variavel?
    Já tentei Qstring, char, short, string mas ainda não deu certo.

    No link abaixo segue o download do exemplo.

    https://mega.co.nz/#!bEQllIbC!MvN3QCBhx5npVye2oGsVGkA_Syt9bkRrtTmdT_6KDDU

    Abraços

    1 Reply Last reply
    0
    • A Offline
      A Offline
      antseq
      wrote on last edited by
      #2

      se abrir o arquivo "qextserialport.h" vai poder ver qual o tipo de "variável":

      @
      /**

      • structure to contain port settings
        */
        struct PortSettings
        {
        BaudRateType BaudRate;
        DataBitsType DataBits;
        ParityType Parity;
        StopBitsType StopBits;
        FlowType FlowControl;
        long Timeout_Millisec;
        };
        @

      @
      enum BaudRateType
      {
      BAUD110 = 110,
      BAUD300 = 300,
      ...
      };

      enum DataBitsType
      {
      DATA_5 = 5,
      DATA_6 = 6,
      ...
      };

      enum ParityType
      {
      PAR_NONE,
      PAR_ODD,
      ...
      };

      enum StopBitsType
      {
      STOP_1,
      ...
      };

      enum FlowType
      {
      FLOW_OFF,
      FLOW_HARDWARE,
      ...
      };
      @

      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