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. [SOLVED] LogText is not a member of 'Qt' issue in auto generated ui file by uic
Forum Update on Monday, May 27th 2025

[SOLVED] LogText is not a member of 'Qt' issue in auto generated ui file by uic

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.9k 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.
  • CKurduC Offline
    CKurduC Offline
    CKurdu
    wrote on last edited by
    #1

    I moved a project from Qt4 to Qt5. But I got issues under below.
    @
    /home/ckurdu/Documents/my_works/C++/qt/my_projects/ckurduCMS/output/debug/ui_dlg_onlylocal.h:92: error: 'LogText' is not a member of 'Qt'
    lbl_log->setTextFormat(Qt::LogText);@

    You reap what you sow it

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MrMNight
      wrote on last edited by
      #2

      try to find in your .ui file string "Qt::LogText" and change it - "Qt::TextFormat":http://qt-project.org/doc/qt-5/qt.html#TextFormat-enum , cleanup target folder and rebuild

      1 Reply Last reply
      0
      • CKurduC Offline
        CKurduC Offline
        CKurdu
        wrote on last edited by
        #3

        I changed the TextFormat of label from designer and problem solved. Thanks a lot.

        You reap what you sow it

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

          You are welcome - don't forget to mark topic as [SOLVED]

          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