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. weird unterminated conditional directiv and unknown type name
Forum Updated to NodeBB v4.3 + New Features

weird unterminated conditional directiv and unknown type name

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 621 Views
  • 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.
  • R Offline
    R Offline
    rexter
    wrote on last edited by
    #1

    Hi
    i tried running a prog it worked then when i tried rerunning it i got "unknown type name" on a class name that i included her header.

    
    
    #ifndef PLAYERN_H
    #define PLAYERN_H
    #include "playernames.h"
    #include <QDialog>
    #include "gametable.h"
    #include <QStringBuilder>
    
    
    namespace Ui {
    class PLAYERN;
    }
    
    class PLAYERN : public QDialog
    {
    /...
    /
    private:
    
        Ui::PLAYERN *ui;
        playerNAMES *rtry = new playerNAMES();
        gametable *sf = new gametable();
    
    
    };
    
    #endif // PLAYERN_H
    

    ah and i get "unterminated conditional directiv"

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rexter
      wrote on last edited by
      #5

      Actually i just realised i made the two windows call each other (i need the first window to call the second one, then the second one to use Qstrings from the first one)
      that s the cause of the errors

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Take a look into your other two own includes - maybe you forgot an endif there

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        2
        • R Offline
          R Offline
          rexter
          wrote on last edited by rexter
          #3

          hey
          no they all have them.
          it worked then when i rerun it, it didnt

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rexter
            wrote on last edited by
            #4

            actually i tried making a new widget with a different name and copied everything from the old one and included it, changed the class name worked at first then no.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rexter
              wrote on last edited by
              #5

              Actually i just realised i made the two windows call each other (i need the first window to call the second one, then the second one to use Qstrings from the first one)
              that s the cause of the errors

              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