跳到內容

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.6k 主題 35.5k 貼文
  • QML - Read PDF - pdf.js

    2
    0 評價
    2 貼文
    2k 瀏覽
    sneubertS
    what about poppler? the qt5 backend is pretty good.
  • QBS, how to remove -fPIC option

    Solved qbs gcc fpic pic
    2
    0 評價
    2 貼文
    3k 瀏覽
    B
    I've found the response. There is a positionIndependentCode property in the cpp module. So on can remove -fPIC by adding cpp.positionIndependentCode: false. This property is supposed to be undefined by default, but it seems to resolve to true for my toolchain.
  • QtCreator - create only getter or only setter

    Solved qtcreator getter setter field
    5
    0 評價
    5 貼文
    2k 瀏覽
    morsiskoM
    @kshegunov Many thanks, i had the eariler version of qtCreator.
  • QtCreator - building a Win32 application with cmake [SOLVED]

    qtcreator cmake win32
    2
    0 評價
    2 貼文
    5k 瀏覽
    Gustavo Ribeiro CroscatoG
    I found a solution. In case anyone has the same problem just add the following to you CMakeLists.txt: if(WIN32) set(GUI_TYPE WIN32) elseif(APPLE) set(GUI_TYPE MACOSX_BUNDLE) endif() then add ${GUI_TYPE} to your target. My CMakeLists.txt is now project(Win32App) cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) if(WIN32) set(GUI_TYPE WIN32) elseif(APPLE) set(GUI_TYPE MACOSX_BUNDLE) endif() set(SRC main.cpp ) set(HDR) set(RES) add_definitions(-DWIN32 -D_WINDOWS -D_UNICODE -DUNICODE) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS,5.01") add_custom_target(${PROJECT_NAME}_HEADERS SOURCES ${HDR}) add_executable(${CMAKE_PROJECT_NAME} ${GUI_TYPE} ${SRC} ${RES})
  • New QT Model plugin

    Unsolved
    5
    0 評價
    5 貼文
    1k 瀏覽
    Viking66V
    Thanks for the hint
  • How do I add a collection of custom examples in Qt 5.5 Creator?

    Solved
    7
    0 評價
    7 貼文
    2k 瀏覽
    E
    @SGaist Thanks. That mailing list will be helpful for future reference. Pursuing my understanding of Examples and Tutorials I followed the recent thread by @clayton https://forum.qt.io/topic/64216/how-to-configure-qt-creator-to-find-the-examples-on-the-welcome-panel/2 From link2 posted by @Ratzz I found this ... https://wiki.qt.io/Qt_Examples_in_Qt_Creator This helps to understand the Examples and Tutorials folder. I opened in text editor .. images_areaofinterest.xml ($QTCREATORDIR/share/qtcreator/welcomescreen/images_areaofinterest.xml) qtcreator_tutorials.xml ($QTCREATORDIR/share/qtcreator/welcomescreen/qtcreator_tutorials.xml) to get some idea of layout. Note that in an XML editor (XMLCopyEditor) element errors showed up in both xml files. e.g. Error at line 2, column 29: no declaration found for element 'instructionals'. However my opening question is answered so I will mark this thread as "solved".
  • qt-creator 3.6 variables (for snippets)

    Solved
    2
    0 評價
    2 貼文
    1k 瀏覽
    A
    I found avaliable variables at special dialog from Qt Creator (projects->build&run->run->"Arguments" field->press right button "Insert Variable". Now the snippet for gtest looks like: TEST_F(%{CurrentDocument:FileBaseName}, $test_name$) { $test_body$ }
  • Localizing Qt Quick Apps

    Unsolved localization translations
    5
    1 評價
    5 貼文
    3k 瀏覽
    ekkescornerE
    @SGaist generation of qm files works if at first lupdate was run manually. so the part of creation of ts files from https://wiki.qt.io/Automating_generation_of_qm_files doesn't work as expected
  • How to use QT Creator code parser to parse .h or .cpp files?

    Unsolved
    3
    0 評價
    3 貼文
    1k 瀏覽
    vlad.vesaV
    thanks, will try to see if I can get something out of that plugin. :)
  • Qt and CLang under Windows

    Unsolved
    4
    0 評價
    4 貼文
    2k 瀏覽
    SGaistS
    Like I already wrote, the interest mailing list is a better place to ask this. This forum is mainly user oriented and that's the kind of question that the developers/maintainers can answer.
  • Qmake pre-build step before ANY compilation

    4
    0 評價
    4 貼文
    9k 瀏覽
    afyaA
    [http://stackoverflow.com/questions/35411144/automatic-build-version-in-qt](link url)
  • QtCreator - Localizing - translations

    3
    0 評價
    3 貼文
    834 瀏覽
    ekkescornerE
    @SGaist thx - have to "learn" how all this is working at Qt ;-) my first steps here after 4 years daily developing Cascades/Qt/4.8 apps with Eclipse Momentics
  • deleting a widget from creator leaves a warning from .moc file

    Unsolved
    3
    0 評價
    3 貼文
    770 瀏覽
    T
    Thanks you put me onto the right path, I did a full rebuild and the case 2 reappeared. I then remembered I'd set a slot in designer for the context menu. This had put a slot function in my header. Deleting this sorted everything.
  • How can I load an image?

    Unsolved
    10
    0 評價
    10 貼文
    5k 瀏覽
    Ni.SumiN
    Hi @jdent Be sure that you have your image and qml file are in resource (*** .qrc). And code : Image { source: "images/imageName.png"
  • Using Clang for Android

    Unsolved
    2
    1 評價
    2 貼文
    928 瀏覽
    SGaistS
    Hi, That's a question better asked on the Qt Android development You'll find there Qt's Android port developers/maintainers. There's this chapter in the Android documentation that might hint that it's possible however I don't the how much work it would mean on the Qt side.
  • Qt Creator Crashes on Centos 2.6.32-431.23.3.el6.centos.plus.x86_64

    Unsolved
    2
    0 評價
    2 貼文
    565 瀏覽
    SGaistS
    Hi and welcome to devnet, What version of Qt and Qt Creator are you using ?
  • Qt 5.5.0 moc: explicitly need to define QT_VERSION

    Unsolved
    4
    0 評價
    4 貼文
    1k 瀏覽
    SGaistS
    Using the macx-xcode mkspec ?
  • A little bug in QtCreator3.4.2(OpenS) (Windows8.1, ChineseEnvironment)

    Unsolved qtcreator
    8
    0 評價
    8 貼文
    2k 瀏覽
    SGaistS
    Thanks !
  • QT Creator Plugin write to "Compile Output" window

    Unsolved
    1
    0 評價
    1 貼文
    491 瀏覽
    尚無回覆
  • Set depends of a project to another subdirs project.

    Solved
    7
    1 評價
    7 貼文
    1k 瀏覽
    S
    @SGaist ok. thanks