Skip to content

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 Topics 35.5k Posts
  • Install windows driver with Qt installer framework

    Unsolved
    1
    0 Votes
    1 Posts
    179 Views
    No one has replied
  • Signals and Slots from internal

    Unsolved
    5
    0 Votes
    5 Posts
    315 Views
    JKSHJ
    @AndrzejB said in Signals and Slots from internal: Re: How works MOC ? Where can I find more content not just MOC but signals/slots infrastructure? https://woboq.com/blog/how-qt-signals-slots-work.html https://woboq.com/blog/how-qt-signals-slots-work-part2-qt5.html https://woboq.com/blog/how-qt-signals-slots-work-part3-queuedconnection.html
  • Should QtCreator sessions save compiler settings?

    Unsolved
    3
    0 Votes
    3 Posts
    290 Views
    SGaistS
    Hi, The compiler is tied to a kit. From what you wrote you seem to be using a single kit and change the settings of it which I find surprising.
  • Project not running..

    Moved Solved error build and run c++ gui
    8
    0 Votes
    8 Posts
    3k Views
    A
    @JKSH Yes now It's working Thank you so much!
  • How to replicate a project and change its name ?

    Moved Unsolved
    1
    0 Votes
    1 Posts
    165 Views
    No one has replied
  • Qt Creator unable to find any symbols of current project

    Unsolved
    2
    0 Votes
    2 Posts
    796 Views
    B
    Newermind, this is https://bugreports.qt.io/browse/QTCREATORBUG-25192 that hasn't been fixed. QtCreator doesn't work with /DEBUG:FASTLINK (or more specifically the Python Dumper), and the bugfix is simply "don't do that".
  • how to draw an arch correctly via QPainterPath ??

    Unsolved
    1
    0 Votes
    1 Posts
    280 Views
    No one has replied
  • QPainterPath no analog QPainter rotate ??

    Solved
    5
    0 Votes
    5 Posts
    721 Views
    timob256T
    void Cran::paintEvent(QPaintEvent *event) { QPainter painter(this); // Создаём объект отрисовщика QBrush bgfon(QColor(48,172,220),Qt::NoBrush); // устанавливаем цвет фона и тип заливки (с фоном без фона и тип заливки) painter.setRenderHint(QPainter::Antialiasing); // убираем резкие кубики QPen pen_osn(Qt::black, 2, Qt::SolidLine, Qt::FlatCap); // кисть для основного тела QPen pen_bashn(Qt::black, 4, Qt::SolidLine, Qt::FlatCap); // кисть для башни painter.setBrush(bgfon); // задаём цвет фона painter.setPen(pen_osn); // Устанавливаем кисть для линий и текста QPainterPath path; // ресуем основные элементы QPainterPath path2; // обводы элемент обводов QPen pen2(Qt::darkGray); // обводы элемент обводов заменить на выборочный цвет pen2.setWidthF(_myTexpr.size_mask); // обводы размер painter.setRenderHint(QPainter::Antialiasing); // убираем резкие кубики // блок чтоб не пересчитывать если размеры не изменились if( _myTexpr.screen_size_x != this->width()) { _myTexpr.screen_size_x = this->width(); _myTexpr.screen_size_y = this->height(); size_wgt_cran(this->width(), this->height()); } if(_myTexpr.screen_size_y != this->height()) { _myTexpr.screen_size_x = this->width(); _myTexpr.screen_size_y = this->height(); size_wgt_cran(this->width(), this->height()); } // ---------рисуем фон ------------ if(_myTexpr.substrate == true) { qDebug() << "1"; // bgfon.setColor(Qt::red); painter.setBrush(_myTexpr.rgb); painter.drawRect( 0, 0, _myTexpr.screen_size_x, _myTexpr.screen_size_y); // рисуем квадрат } if(_myTexpr.substrate == false) { qDebug() << "2"; painter.setBrush(_myTexpr.rgb); painter.drawRect( 0, 0, _myTexpr.screen_size_x, _myTexpr.screen_size_y); } // ---------рисуем корпус------------ // обводы if(_myTexpr.outline == true) { path2.addRect(_myTexpr.centering_by_x+_myTexpr.cran_height/2.1, _myTexpr.centering_by_y+_myTexpr.cran_width/2.1, _myTexpr.cran_width, _myTexpr.cran_height); painter.strokePath(path2, pen2); // обводы элемент обводов painter.drawPath(path2); } path.addRect( _myTexpr.centering_by_x+_myTexpr.cran_height/2.1, _myTexpr.centering_by_y+_myTexpr.cran_width/2.1, _myTexpr.cran_width, _myTexpr.cran_height ) ; painter.drawPath(path); // очищаем эту хрень path.clear(); path2.clear(); // центрирование, поворот, возвращаем центрирование painter.translate(this->width()/2.0, this->height()/2.0); painter.rotate(_myTexpr.m_pitch); painter.translate(-this->width()/2.0, -this->height()/2.0); if(_myTexpr.outline == true) { path2.addRect( _myTexpr.centering_by_x+_myTexpr.cran_height/1.2, _myTexpr.centering_by_y+_myTexpr.cran_width/4.1, _myTexpr.cran_width/5, _myTexpr.cran_height/1.5 ) ; painter.strokePath(path2, pen2); // обводы элемент обводов painter.drawPath(path2); } path.addRect( _myTexpr.centering_by_x+_myTexpr.cran_height/1.2, _myTexpr.centering_by_y+_myTexpr.cran_width/4.1, _myTexpr.cran_width/5, _myTexpr.cran_height/1.5 ) ; painter.drawPath(path); } this ansfer path.clear(); path2.clear(); [image: 29bae9f5-f777-4e5a-bd20-b2b5ce7f7fc8.png]
  • configuration file for cmake?

    Solved
    3
    0 Votes
    3 Posts
    292 Views
    C
    Hi @kkoehne , Many thanks! Yes, I have been creating the projects in QtCreator. I'm on Debian but the path is the same. I had been searching in every available cmake directory and hadn't got round to diving down the qtcreator tree.
  • Speed up Qt Creator when project file changes

    Unsolved
    3
    0 Votes
    3 Posts
    303 Views
    btseB
    It does not appear there's a similar setting for qmake.
  • 1 Votes
    4 Posts
    6k Views
    H
    @m3g1dd said in qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory: ‎我在PowerShell上运行命令。通过使用命令提示符解决了该问题!‎ How to do it, detailed steps
  • Design Icon Greyed Out

    Moved Unsolved
    1
    0 Votes
    1 Posts
    182 Views
    No one has replied
  • How to select function {"block"} to copy ?

    Moved Unsolved
    2
    0 Votes
    2 Posts
    175 Views
    M
    Position the cursor at the beginning of the code block and then use key combination Ctrl+Shift+] https://doc.qt.io/qtcreator/creator-keyboard-shortcuts.html#editing-keyboard-shortcuts
  • [Solved] Linker Error

    Moved Solved
    19
    0 Votes
    19 Posts
    6k Views
    C
    @jsulm said in Linker Error: @Charon117 said in Linker Error: INCLUDEPATH += %TEMP% Remove these two lines. For some reason only main.c file is built. Did you try a complete rebuild: Delete build folder Run qmake Build Ok, so the weirdest thing happened. It works now. No clue how that happened, or what i did to change it. But ... lol ... check this out. I delete the whole build folder, eg. build-SoftwareKursC-Desktop_Qt_5_15_2_MinGW_64_bit-Debug Then i compile with Qt Creator, and i only use #include *.c files. Then i comment out the *.c includes and enable the *.h includes. This leads us to exactly the error i described. Another delete later: I compile this time with *.h files and then change them to *.c files. I get a completely different linker error, but a linker error nonetheless. Another delete: I only compile with *.h includes and it works. No changing afterwards. Another delete: I only compile with *.c includes and it works. No changing afterwards. Conclusion: Changing compilation from *.h to *.c includes leads to linker errors, as well as changes from *.c to *.h includes. Deleting the build folder in both cases is the solution. What kind of clusterfucking mindblowing error is this ? Thanks for the help, i guess i will mark this as solved. Thanks to @jsulm for suggesting the correct solution. I will make a note that in case of mysterious bugs deleting the build folder is priority number one. If somebody has an explanation of why this is happening they can add it as another post. Thank you all for participating in this discussion.
  • How to move / duplicate existing slot

    Moved Unsolved
    2
    0 Votes
    2 Posts
    246 Views
    Christian EhrlicherC
    @AnneRanch said in How to move / duplicate existing slot: Is there a more cleaner way to do so? No
  • Code beautifier - Artistic Style update - remove empty lines.

    Moved Unsolved
    2
    0 Votes
    2 Posts
    323 Views
    Christian EhrlicherC
    @AnneRanch said in Code beautifier - Artistic Style update - remove empty lines.: is it an option in Qt ? Since you can define the astyle style you want to use in QtCreator by your own - yes.
  • Qt Creator font issue

    Unsolved
    2
    0 Votes
    2 Posts
    281 Views
    Christian EhrlicherC
    See https://forum.qt.io/topic/134040/
  • want to downgrade Creator

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    mzimmersM
    Hi koahnig - I wasn't clear in my OP: I'm using the Qt libraries 5.15.2, not Creator which, as you said, didn't exist at that version number. Maybe it's not Creator, but an old app that used to build and run now gives me an error when I try to debug: can't find linker symbol for virtual table for `ModelApScan' value section .gnu_debuglink not found in C:\Qt\5.15.2\mingw81_32\plugins\platforms\qwindows.dll.debug section .gnu_debuglink not found in C:\Qt\5.15.2\mingw81_32\plugins\styles\qwindowsvistastyle.dll.debug ModelApScan is one of my classes. I get the .gnu_* messages when I try to execute this line: QApplication a(argc, argv); Like I said, this used to build and run without incident, and I haven't changed the app. Not sure what's going on... EDIT: this question is completely different from my original. I'll mark this solved and open a new question. Thanks...
  • Qt Creator: Locator takes very long time to appear

    Solved
    3
    0 Votes
    3 Posts
    447 Views
    V
    @sierdzio I tried your suggestion to wipe the Qt Creator settings, caches, etc. from my user directory (on Windows, these can be found at C:\Users\$USERNAME\AppData\Roaming\QtProject). It worked! Locator is fast again! I had to reconfigure a few things in Qt Creator, which I had previously, but that was no problem. Thank you very much.
  • Multiple executables in Qt Creator

    Moved Unsolved
    3
    0 Votes
    3 Posts
    900 Views
    S
    @sierdzio Thank you for the answer! I wondered about the running in one click, but your approach is ok as well, but... I have no such option in right-click context menu (Qt Creator 7.0.0-beta2, 6.83.0). Looks lit this option is available for the qmake-based project and subproject. In my case cmake projects can not be run through this menu.