GUI on macOS look like a bit ugly (corrupted).
-
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. )
-
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 ? -
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 ?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) -
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. )
@Suares It's an anti-aliasing problem. This will probably fix your issue:
http://stackoverflow.com/questions/26196038/qt-antialiasing-issue-on-osx
-
@Suares It's an anti-aliasing problem. This will probably fix your issue:
http://stackoverflow.com/questions/26196038/qt-antialiasing-issue-on-osx
@ambershark thank you! That's what I have been looking for :)