Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
438 Topics 3.2k Posts
  • 0 Votes
    7 Posts
    1k Views
    A

    @J-Hilk That's interesting info, thanks. I'm using an external mouse, but the machine is indeed a Macbook with the trackpad set to clicking on a tap—so I guess it might be possible that Qt processes some low-level events in a weird way.

    However, while I tried changing the system settings it turned out my MacOS forgot that it has a trackpad at all, and doesn't show those options even though input works fine. I don't think this new problem of mine is related to dragging-on-click since dragging-on-click is older IIRC (and occurs on Linux too, judging from the link)—but apparently I will now be fighting MacOS instead for a while, as quick googling didn't uncover anything on this topic. I also thought that I already checked if dragging-on-click persists with all input-tuning apps turned off, but perhaps I misremembered. Will report after I wrangle the OS and make it behave properly.

  • Need Help for Video Streaming using UDP Sockets

    Moved Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    JonBJ

    @Pooja-Bhusare
    Well @LuGRU said:

    You can achieve this by using libVLC or FFmpeg.

    and @KoLiBer said that was so helpful.

  • Translate texts read from a file

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    Pablo J. RoginaP

    @LeLev said in Translate texts read from a file:

    Re-reading your requirements I guess you could be able to maintain (add/delete) your error strings without the need of recompiling the application.

    My target machine has a list of possible errors to show to the user,

    If those possible errors have a code (i.e. ABC123 or 123456) then you don't need the enum from @J-Hilk example, you'll use such codes as index for such std::array in the example or the key in the suggested map or whatever data structure you end up using.

    In that way, you can maintain the .h file with the error strings separate from the source code, and just updating the .qm file(s) whenever the strings change. Since your source code will always use an index for the error string, no re-compilation of app is needed.

  • 0 Votes
    17 Posts
    3k Views
    Pablo J. RoginaP

    @SlySven you may want to watch BUG-76499 as the Qt developers are seeking to upgrade the API for cryptography.

  • Generating docx / Communicating with Word add-in

    Solved
    14
    0 Votes
    14 Posts
    10k Views
    A

    @Asperamanca,

    I would like to inform you that Aspose.Words for C++ is an advanced Word Document Processing API to perform a wide range of processing tasks. API provides document formatting, manipulation, mail merge, watermarking and much more capabilities directly within your own C++ applications without requiring Microsoft Word. API supports most of the Microsoft Word formats for processing. You can even integrate this native C++ API within your Qt application.

    I am sharing here an example cmake project which uses Qt and Aspose.Words for C++. Then please do the following steps:

    Download and install cmake Download and unpack Aspose.Words for C++ library Copy Aspose.Words.Cpp and CodePorting.Native.Cs2Cpp_vc14_20.3 folders next to CMakeLists.txt file Run the following command from command line: cd qthw cmake -G "Visual Studio 15 2017" -Thost=x64 -Ax64 -S . -B build -D"Qt5_DIR=<path-to-qt5>"

    path-to-qt5 should be something like -x:\QT\5.14.2\msvc2017_64\lib\cmake\Qt5 - path to folder with Qt5Config.cmake file

    It should create Visual Studio 2017 Solution with a proper setup for Qt and Aspose.Words for C++.

  • inter-object communication

    Solved
    6
    -1 Votes
    6 Posts
    838 Views
    mzimmersM

    OK, thanks for the input, guys. I'll continue with my current method.

  • revealing advanced user options

    Solved
    5
    0 Votes
    5 Posts
    645 Views
    mzimmersM

    Thanks for the input, guys. Jon makes a good point about the need to convey this "hidden" feature to the user. That said, I might go ahead and try implementing this, simply because I can foresee a lot of good uses for the QKeyEvents. I can always go back and implement something that Jon could live with.

    Thanks again...

    EDIT: QKeyEvents aren't a great solution. It turns out that, on Windows and Linux (but not Mac), holding down keys prevents a button push from signalling. You have to press and release the keys, then push the button. Much clunkier than I'd hoped for.

  • Whiteboard chat

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    fcarneyF

    Does it update in real time? If it does then what events happen on one should be sent to the other. Like @eyllanesc said, those would be the "instructions" of what to draw.

  • any Windows networking mavens out there?

    Solved
    20
    0 Votes
    20 Posts
    3k Views
    M

    @mzimmers If i iterate over the interfaces like in your script, then it works with no problem :)
    Running on windows :)

    When using only the QHostAddress::Broadcast I get the wrong broadcast addr. I too think it is strange, but this is no issue for me, as it's always simple to determine the right address by code or manually :) just strange as you say :)

    Anways, off to new issues :D

  • changing from 1:1 to 1:many

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    mzimmersM

    Thanks for the suggestions. I'm sure I'll have more questions about implementation, but as the original issue has been answered, I'm marking this as solved.

  • QJsonObject comparison

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    R

    @JonB
    Thanks a lot for your insight!

  • PUBLISHING A SIDE PROJECT (HOBBY PROJECT)

    Unsolved
    2
    0 Votes
    2 Posts
    448 Views
    jsulmJ

    @EHSUN7B If you want to publish source code also then there is nothing special to consider.
    If you do not want to deliver source code then use LGPL license for Qt and use Qt shared libraries.
    When using static Qt libraries you have to be prepared to give the users the object files so they can relink the app against their own Qt libs.
    Note: I'm not a lawyer.

  • deterministic free store using memory pools

    Unsolved
    7
    1 Votes
    7 Posts
    1k Views
    Kent-DorfmanK

    @Konstantin-Tokarev
    I think you're saying I'm wrong and then restating exactly what I wrote in the first place?

    The default allocator reverts to the default heap manager and I'm well aware that it can be overriden, as I mentioned that as a potential strategy. so yes, it is implicit in the default STL.

    Normally I stay well away from boost. Historically the lack of real boost documentation and frequently changing interfaces have left me severely jaded where boost is concerned. If/when something from boost finds its way into the standard then I'm more likely to give it a whirl, but I may take a look at their pool allocators. Thanks!

  • Replace DLL name and DLL dependecy

    Unsolved
    3
    0 Votes
    3 Posts
    508 Views
    A

    @aha_1980 Thank you for your kind reply and.... you are right, is not enough replace the name of the linked dll.

  • General Open Source Software License Question

    Unsolved
    4
    0 Votes
    4 Posts
    521 Views
    K

    Does it satisfy the requirements for BSD and MIT? I mean it is easy to find. Who does not know "Help > About" ? at first you will see a list of all third party libraries.

    You can look how other companies (like Apple, Google, or, surprise, Qt itself) are handling 3rd-party BSD/MIT licensed code. It may be buried deep down in app or documentation and it's still ok because persistent user can find it.

    But If I changed it I would have released them as open source under the same License.

    BSD and MIT allow any modifications in code without requirement to publish them, as long as you comply with their terms. Read licenses, they are very concise..

  • Qt in company - licensing

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    Umberto2020U

    @AndyS
    @JKSH
    @Konstantin-Tokarev
    @bterrier

    Thanks for the answers. I read into the details of the GPL and LGPL licenses and it looks like (for my Qt library use) i don't need to purchase a license.

  • time and time zones

    Solved
    18
    0 Votes
    18 Posts
    3k Views
    Kent-DorfmanK

    what you are asking for is POSIX TZ format. It can be pulled or generated from the POSIX tzfile(5) database. A quick search of the database on my machine shows that all of the timesonze files I searched contained a newline terminated TZ string fallback for dates after the prior exception rules. You most likely would have to parse the tzfiles according to the zone selected and use the fallback string if it exists, or build the correct string from the data if it doesn't exist. This of course assumes that you are on a unix/linux machine.

  • Smart home system

    Unsolved
    3
    0 Votes
    3 Posts
    508 Views
    K

    FWIW, if you make your project open source under GPL license, and not planning to sell devices which runit as a part of firmware, you can also ignore all license stuff and be safe. But if you are planning to produce such devices, it's better to consult a lawyer, though it's still possible to do with open source Qt if users can reflash device or have read-write access to its file system and can build their own Qt for them.

  • qwebp.dll malware Variant.Adware.Kazy.795337

    Unsolved
    4
    0 Votes
    4 Posts
    679 Views
    aha_1980A

    Hi @ludek-vodicka,

    But who you think to contact? These AV companies?

    Yeah, these are the only ones that can update their whitelists.

    Regards

  • Qt/C++, QML Themes and Templates

    Moved Unsolved
    4
    4 Votes
    4 Posts
    3k Views
    A

    @Vova-Shevchyk this is a bit old, but I want to check how's the work on this website going?