Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    3
    5
    939
    Loading More Posts
    • 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
      Suares last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • S
          Suares @SGaist last edited by

          @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 Reply Quote 0
          • A
            ambershark @Suares last edited by

            @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 Reply Quote 2
            • S
              Suares @ambershark last edited by

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

              1 Reply Last reply Reply Quote 1
              • First post
                Last post