Results 1 to 3 of 3

Thread: unknown type name ‘QBool’ error

  1. #1
    Join Date
    Feb 2010
    Location
    Los Angeles
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default unknown type name ‘QBool’ error

    Hi All,

    I have installed Qt 5.3.1 on OS X 10.9.4 and trying to port over a project that was created under 4.8.
    I am getting the unknown type name ‘QBool’ error and don’t know how to fix this.

    Any suggestions?

    Markus

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: unknown type name ‘QBool’ error

    use bool instead of QBool, QBool does not exists.
    Qt 5.3 Opensource & Creator 3.1.2

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: unknown type name ‘QBool’ error

    Quote Originally Posted by Markus View Post
    Hi All,

    I have installed Qt 5.3.1 on OS X 10.9.4 and trying to port over a project that was created under 4.8.
    I am getting the unknown type name ‘QBool’ error and don’t know how to fix this.

    Any suggestions?

    Markus
    QBool in Qt4 was a special type used to prevent an unwanted implicit cast when porting old Qt3 code to Qt4. You should never use it in your own code.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Unknown mouseevent type=3
    By maverick in forum Qt Programming
    Replies: 2
    Last Post: 3rd March 2014, 05:13
  2. unknown error in Qwebview
    By patrick1973 in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2014, 01:13
  3. QSslsocket and Unknown error
    By szarek in forum Qt Programming
    Replies: 21
    Last Post: 14th October 2010, 15:20
  4. Pointer of an unknown type...
    By TheNewGuy in forum Newbie
    Replies: 1
    Last Post: 17th December 2009, 09:50
  5. Replies: 7
    Last Post: 16th August 2009, 10:03

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.