Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • 0 Votes
    2 Posts
    213 Views
    R
    Is there some other signal I should be connecting to, or a property of the underlying QTextDocument that would help retrieve the URL which is currently focused?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Singleton Class example

    Solved qt singleton
    3
    0 Votes
    3 Posts
    470 Views
    D
    thank you @jsulm it was really nice of you to give me that guidance. i have worked on to use loader example for showning QWidget app once. i will use the rest of examples. LoveQt
  • Failed to start program. Path or permissions wrong?

    45
    0 Votes
    45 Posts
    25k Views
    V
    @gkavrecic Yes. Rename Target name and it worked. The directory where the project directory is located has the same name as the one in Target
  • Link project with inner library

    Unsolved
    9
    0 Votes
    9 Posts
    574 Views
    jsulmJ
    @masa4 So, is there a lib called libmylib.so inside codefolder/mylib/lib? Why would you put a binary of your lib into your source code tree AND also add the code of the lib to your project? This does not make sense and that's why I suggested to do it properly using subdirs project...
  • Wondering about Qt commercial license

    Unsolved
    2
    0 Votes
    2 Posts
    235 Views
    jsulmJ
    @fromis_9 This is a user forum. For such questions it is better to contact QtCompany directly, then you're on safe side.
  • How to insert data from Qt to PostgreSql(DataBase) ?

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    jsulmJ
    @Pappu-Kumar-Keshari Please read again what @Christian-Ehrlicher suggested and follow that suggestion - you have zero error handling, please add. And again: you do NOT show where and how you actually insert the data (exec()). Please don't ignore questions and suggestions if you ask for help...
  • How to rotate draw text only in QPainter

    Solved
    9
    0 Votes
    9 Posts
    4k Views
    Ramkumar MohanR
    @JonB Now Working fine , Thanks a lot....
  • Compilation errors C2589, C2062, C2059, C2988, C2143

    Solved msvc error compilation
    9
    0 Votes
    9 Posts
    2k Views
    L
    I managed to solve it by moving an #include (of the class that has the #include "ExpressionEvaluator/exprtk.hpp" in it) that was in a .cpp file to the .h file and putting it before the #include of the class that has the #include <windows.h> in it. Thanks everyone for the help.
  • Error: AttributeError: 'Widget' object has no attribute 'browser'

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    SGaistS
    Remove the parent parameter. It's not needed since browser will be reparented when added to the layout.
  • Define image positioning in the QLabel

    Unsolved
    6
    0 Votes
    6 Posts
    846 Views
    M
    @SGaist I created something like that using OpenCv but the main problem was, i can't click on image inside app. Now is the problem with infinitive loop and not realistic dimension of the image it is as QLabel size.
  • 0 Votes
    3 Posts
    1k Views
    H
    Windows 10.0.19045, Qt 5.15, I think. At least Qt 5, that's for sure.
  • Standard C++ callbacks handling inside Qt application

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    DragoonD
    @Kent-Dorfman I do.
  • BUG: keyReleaseEvent does not fire if focus changed to child widget

    Unsolved
    7
    0 Votes
    7 Posts
    484 Views
    I
    installEventFilter on window handle (QWindow) do not receive events when I clicked to MenuBar. but events exist in QApplication.notify() it seems like if keyPressed and then QWindow was changed to opened QMenu, no keyRelease was emiited to previous QWindow.
  • Syntax highlight for .qss in VSCode

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    H
    Thanks, that did the trick! Was in the bottom right corner, where it said "Plain text".
  • Where should I connect signals with slots

    Unsolved
    11
    0 Votes
    11 Posts
    777 Views
    M
    @jsulm X emits the another signal but nevermind, I changed the codes so not need for passing them each other now.
  • How can I do page numbering?

    Unsolved
    1
    0 Votes
    1 Posts
    209 Views
    No one has replied
  • Control the location of (ui_*.h) files with CMake

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    SavizS
    @JoeCFD I completely agree with your opinion. Thank you for your explanation.
  • 0 Votes
    5 Posts
    509 Views
    M
    @jsulm said in dont know what to call error/bug. part of string printed to file and konsole, without calling cout or std::ofstream m_file: @micha_eleric said in dont know what to call error/bug. part of string printed to file and konsole, without calling cout or std::ofstream m_file: i ran debug, it never entered the if() statement. Then please check your conditions. If your if statements are not entered then your t46 and pass don't have the values you think they have. You can easily check their values using debugger or printing them... that is the issue and question. the condition to enter the three if() statements are not meet, yet part of string, not the whole string is printed, AND emitMessageBoxRed does more than just print to konsole and file.
  • Consequences for calling beginInsertRows() and endInsertRosw() an once?

    Unsolved
    2
    0 Votes
    2 Posts
    254 Views
    Christian EhrlicherC
    Your first code will most likely kill your view sooner or later, esp. when you have selections, item widgets and insert somewhere in between since beginInsertRows() expects that the model contains the old row count and endInsertRows() sees the new row count in the model.