Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Changing debug log level

    Solved
    5
    0 Votes
    5 Posts
    7k Views
    sierdzioS
    You can install your own filter (see next section under my link), but that will be cumbersome. Or you can patch your Qt sources and insert a logging category in that file, then filter it out. It would also be good to fix this upstream - feel invited to open a bug report for last of category in layout engine.
  • Breaking inside Qt's code with Xcode

    Unsolved
    3
    0 Votes
    3 Posts
    424 Views
    SGaistS
    Hi, The dSYM files are installed with the rest of the frameworks. You can find them in the lib folder of your Qt installation.
  • Translation: duplicated string

    Unsolved
    2
    0 Votes
    2 Posts
    437 Views
    KazuoAsanoK
    @MartinD, In three qml files I have this string: qsTr("OK"). It's recognized as a different translation target. If you want to have one target, what about implementing as Original QML Type? For Example as below TypeDef.qml import QtQuick 2.12 Item { property string ok_string : qsTr("OK") } Sample.qml import QtQuick 2.12 Item { id: root_ TypeDef { id: def_ } /// define QML Type( include OK string) Text { text: def_.ok_string } }
  • How we can implement our own timer in QT

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    aha_1980A
    @Ayush-Gupta Say g_time I recived from my normal C/C++ application when the time recieved from my application to QT dll passes 5 seconds. You receive the time from your C++ application, why not just substract the two times and you're done?
  • Wrong widget layout after maximized show

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    Pl45m4P
    @Scr3amer I have the same problem with my project... In my opinion they mixed up "Maximize" and "Minimize". If you put one PushButton and something different like a Label inside a layout box and set the PushButtons size policy to max, the LABEL size increases while Pushbutton itself gets smaller and vice versa. If you use min, the objects have the same weird behavior... I really think they mixed them up.
  • Disabling QUndoStack

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    ModelTechM
    So, I have now implemented this and it works perfectly. To be complete, I wanted to mention that I also filter the QUndoStack::beginMacro and QUndoStack::endMacro calls.
  • QObject timer events happening in reverse order

    Unsolved timerevent
    6
    0 Votes
    6 Posts
    1k Views
    W
    @pderocco Packets arriving out of order is a pretty accurate simulation of commlinks over the Internet. But if you want ordered serialization, you'll need to do that yourself. Put the messages in a queue, and pop the head whenever it's delivery time is less than the current time.
  • Unsure of how to configure QHttpMultiPart for Google Drive upload - Error 400

    Unsolved
    4
    0 Votes
    4 Posts
    743 Views
    SGaistS
    Do you mean it's not sent ?
  • how to pass functions as parameters to another function

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    mrjjM
    Hi you have test() as part of a class and hence its not a c function pointer as your declaration suggest. ( the typedef) So either move it outside class or make it static. or use a member function pointer so that the info needed to call it is included. https://isocpp.org/wiki/faq/pointers-to-members
  • Cannot solve this problem to (finally) start with Qt

    Solved
    6
    0 Votes
    6 Posts
    880 Views
    cppStudent012C
    @aha_1980 You were absolutely right! After reinstalling everything went fine. Thank you, thank you very much!
  • How to correctly add an OpenCV build to a QT application

    Unsolved
    2
    0 Votes
    2 Posts
    431 Views
    aha_1980A
    hi @mikeitexpert, How else QT looks for libraries directory? Qt (and not QT, that is QuickTime) doesn't look for directories. It's the Linker doing that, and linking on Linux is complicated.*) You can google that up, there are multiple fallbacks taken in account when doing that. Does that mean it is using OpenCv 4 headers/includes and libraries from Opencv 3.2. Most likely, yes. Regards *) Well, on Windows it's not better, hence called the DLL hell. Good libraries are therefore versioned (like Qt)
  • I'm not understanding separated multiaxis folder on QWT. please explain me.

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    mrjjM
    @uwer Ah, thank you for clearing that up.
  • 0 Votes
    8 Posts
    5k Views
    T
    You may just set the size of the central widget to a fixed value. To my case, I set the maximum size of it as (1, 0), to hide the central widget and MAKES THE DOCK WIDGETS FILL ALL THE SPACE OF THE MAIN WINDOW
  • How to read struct members from another class

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    mrjjM
    Hi Remove the =0 explicit Dialog(QWidget *parent = 0, MainWindow::_properties & theProps); or swap the order of parameters if you want a default value. for the Dialog *_dialog;// error: 'Dialog' does not name a type Dialog *_dialog; is due to us using Mainwindow.h in Dialog.h and made a circular includes. ( which is forbidden) to fix it. over MainWindow class. type class Dialog; // this is a forward and move the #include "Dialog.h" to mainwindow. cpp file.
  • Remove all special characters in a string

    Solved
    3
    0 Votes
    3 Posts
    5k Views
    Chris KawaC
    Or, if you don't feel like bothering with regular expressions: auto it = std::remove_if(str.begin(), str.end(), [](const QChar& c){ return !c.isLetterOrNumber();}); str.chop(std::distance(it, str.end()));
  • How to achieve this Ui?

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    T
    @mrjj I mean selected curve y-axis scale should increase.
  • Application stops when loosing focus

    Solved
    7
    0 Votes
    7 Posts
    861 Views
    C
    @aha_1980 It does seem to work when it is minimized only. This is somehow acceptable. So I mark this as solved though I would be interested in the switch-from-X11 solution...
  • Surface rendering of Volumetric Data

    Unsolved
    1
    0 Votes
    1 Posts
    382 Views
    No one has replied
  • qtbase_*.qm is not mentioned in documents...

    Unsolved
    2
    0 Votes
    2 Posts
    523 Views
    mrjjM
    Hi The "Internationalization with Qt" is explaining how to use the tools to extract and translate the user owns text and the whole process surrounding Internationalization and various cases for text use. The Qt builtin texts are inside so/DLL files and would not be extracted this way and its really an other process than focused on in that part of the manual. The use of qtbase_.qm / qt_.qm is more a matter of adding a new languages for the base Qt. But yes, it could be great if it was mention as last section.
  • Simplest possible scrollable text box (C++)

    Unsolved
    4
    0 Votes
    4 Posts
    7k Views
    S
    Two excellent replies. I'll try them and get back if there are any remaining questions. Thanks! (And for some reason, I didn't get the connection bug popup from my main machine this time ("Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.")