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. GUI on macOS look like a bit ugly (corrupted).
Forum Update on Monday, May 27th 2025

GUI on macOS look like a bit ugly (corrupted).

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • S Offline
    S Offline
    Suares
    wrote on last edited by
    #1

    Hello, guys!
    I have generated qt project with cmake. Everything was okay till I saw my main window:

    View and text are ugly comparing with text from editor.
    Could you please suggest what I have missed?

    Here is my CMakeLists.txt:

    cmake_minimum_required(VERSION 2.8.11)
    
    project(gui)
    
    set(CMAKE_AUTOMOC ON)
    
    find_package(Qt5Widgets)
    
    set(HEADERS
        include/MainWindow.h
        )
    
    set(SOURCES
        src/Main.cpp
        src/MainWindow.cpp
        )
    
    include_directories(
        include
        ../libsm/include # Includes for my library.
        )
    
    add_executable(${PROJECT_NAME} MACOSX_BUNDLE WIN32
        ${HEADERS}
        ${SOURCES}
        )
    
    target_link_libraries(${PROJECT_NAME}
        Qt5::Widgets
        libsm # My small library.
        )
    
    A 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of macOS are you running ?
      What version of Qt are you using ?
      What version of Xcode are you using ?
      What type of machine are you running this application on ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of macOS are you running ?
        What version of Qt are you using ?
        What version of Xcode are you using ?
        What type of machine are you running this application on ?

        S Offline
        S Offline
        Suares
        wrote on last edited by
        #3

        @SGaist

        What version of macOS are you running ? - macOS Sierra 10.12.3 (16D32)
        What version of Qt are you using ? - Qt 5.7.1 (Clang 7.0 (Apple), 64 bit)
        What version of Xcode are you using ? - Version 8.2.1 (8C1002)
        What type of machine are you running this application on ? - MacBook Pro (Retina, 13-inch, Early 2015)

        1 Reply Last reply
        0
        • S Suares

          Hello, guys!
          I have generated qt project with cmake. Everything was okay till I saw my main window:

          View and text are ugly comparing with text from editor.
          Could you please suggest what I have missed?

          Here is my CMakeLists.txt:

          cmake_minimum_required(VERSION 2.8.11)
          
          project(gui)
          
          set(CMAKE_AUTOMOC ON)
          
          find_package(Qt5Widgets)
          
          set(HEADERS
              include/MainWindow.h
              )
          
          set(SOURCES
              src/Main.cpp
              src/MainWindow.cpp
              )
          
          include_directories(
              include
              ../libsm/include # Includes for my library.
              )
          
          add_executable(${PROJECT_NAME} MACOSX_BUNDLE WIN32
              ${HEADERS}
              ${SOURCES}
              )
          
          target_link_libraries(${PROJECT_NAME}
              Qt5::Widgets
              libsm # My small library.
              )
          
          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @Suares It's an anti-aliasing problem. This will probably fix your issue:

          http://stackoverflow.com/questions/26196038/qt-antialiasing-issue-on-osx

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          S 1 Reply Last reply
          2
          • A ambershark

            @Suares It's an anti-aliasing problem. This will probably fix your issue:

            http://stackoverflow.com/questions/26196038/qt-antialiasing-issue-on-osx

            S Offline
            S Offline
            Suares
            wrote on last edited by
            #5

            @ambershark thank you! That's what I have been looking for :)

            1 Reply Last reply
            1

            • Login

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