Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
457 Topics 3.2k Posts
  • making worker and widget aware of one another

    Solved
    6
    0 Votes
    6 Posts
    962 Views
    SGaistS
    That's why setModel accepts a base class (usually abstract) so you can use several different models as they have a standard interface. Since you have a model that is used in several other objects, you would create the model in the class that manages all these objects. Model/View does not lock you to the Qt classes. It's a pattern that you can implement in different ways. From your description, it seems to be a good plan.
  • QPainter not active for ordinary user

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    artwawA
    @Jiri-Rohlicek So it looks like the package manager put it somewhere where your user doesn't have to sufficient permissions. Sadly, I don't know how to fix it.
  • Alsa Plugin with QT

    Unsolved qtmultimedia alsa pulseaudio qtalsa
    7
    0 Votes
    7 Posts
    2k Views
    E
    @SGaist and @Kent-Dorfman Thanks for your inputs.
  • STL files into readable text

    Unsolved
    25
    0 Votes
    25 Posts
    6k Views
    JonBJ
    @Mani_kandan As @jsulm and I have been saying. If you have data in a file you want to encrypt you have to read the file to get the data to encrypt, so there is no point keep asking whether you can do it without reading the file content. If you want to save the encrypted data back to a file you can do that. If you want the encrypted data to end up back in the same file as you read the encrypted data from: either read all the file content into memory, encrypt it, and write it back to the file you originally read from; or, read it a chunk at a time from the original file, write it encrypted a chunk at a time to a new, temporary file, and rename the new file to the original file right at the end.
  • in qt using openssl how to encrypt and decrypt the file

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    jsulmJ
    @Mani_kandan said in in qt using openssl how to encrypt and decrypt the file: So can you help me out how to encrypt the file OpenSSL is not Qt. This is Qt forum. Why don't you read OpenSSL documentation (https://www.openssl.org/docs/)?
  • Making a website where to download my App, copyright? license?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    GiridharG
    Ok, I think that these are the modules under the LGPL. I'm reading right now. If I find some troubles I will write here. Edit: I found this that maybe could be of help to someone.
  • Java spring framework frontend or backend?

    Unsolved
    2
    0 Votes
    2 Posts
    720 Views
    Pablo J. RoginaP
    @Violet-Booth and how is this related to the Qt framework?
  • Saving Qlist data in a mysql database

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    SGaistS
    If I may, there's no need for the loop, you should be able to directly stream the list object and not go manually with that loop.
  • Timer for currently recording audio file

    Solved timer time recording
    17
    0 Votes
    17 Posts
    3k Views
    haykarmeniH
    thank you, @eyllanesc, now it works as I expect...thank you very much for so much assistance and readiness :)
  • 0 Votes
    5 Posts
    1k Views
    haykarmeniH
    @eyllanesc, so is there any other way to extract the exact name of the default audio input file? Am I right, that the first element of the returned value of QAudioDeviceInfo::availableDevices(QAudio::AudioInput) is the DeviceInfo of the default audio input device?
  • Questions about Qt3D (and comparison with Three.js)

    Moved Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    SGaistS
    @SpyerGame indeed, has been deprecated now four years after I answered this question. Do you mean you would like an alternative ?
  • Sliding Image Item Selection Bar

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    Thank YouT
    @duck18 I am sure this will be much easier with QML
  • Project Organization, Tool Tips

    Unsolved
    1
    0 Votes
    1 Posts
    444 Views
    No one has replied
  • QProcess and powershell - checking if the disk is clean

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    JoeCFDJ
    @Piotrek102 Do this in a thread to avoid any delay call(==>as less as possible) since it may take a while to get all storage info. GUI is not blocked in this way.
  • creating a line that can be resizes

    Unsolved
    3
    0 Votes
    3 Posts
    751 Views
    T
    I've decided to implement something different. Thank you for your reply
  • algorithm fun

    Solved
    1
    0 Votes
    1 Posts
    511 Views
    No one has replied
  • Why can't I receive WM_POINTERXXXX via the WACOM trackpad

    Unsolved
    2
    0 Votes
    2 Posts
    549 Views
    SGaistS
    Hi and welcome to devnet, Which version of Qt are you using ? On which OS ?
  • Why isn't qt so popular

    Unsolved
    37
    0 Votes
    37 Posts
    22k Views
    J.HilkJ
    @macfanpl said in Why isn't qt so popular: Really....... @thierryhenry14 meant that development of C++ stopped long ago Thats just wrong, c++20 is a thing, you know, this not just an update for the std-library but includes core features thats compiler vendors have to implement like concepts, three-way comparison etc. and 23++ already has ton of stuff that is in the making, above all reflection (hope never dies :D)
  • Using a single shared Object as a message bus in the entire application?

    Moved Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    kshegunovK
    Sorry for the late reply, I was really busy the last few days. No need to get angry, you asked for an opinion, which is what I gave. Nobody said you must listen to my/our opinion. @thierryhenry14 said in Using a single shared Object as a message bus in the entire application?: Before Qt 5 we didn't even have compiler checks on connect() calls, didn't stop people from writing great Qt 4 apps. I guess, but on that particular note before Qt5 signals were private (for the mentioned reasons). The fact that you can now emit a signal from outside the object is an implementation detail. Don't get me wrong, I've done it, it's sometimes useful if you have coupled objects (like a manager class that may need to force the emission through its underling), but it still is frowned upon. Regarding DBus... The DBus mention was just as an example, no one implied you should use it for objects communication. It wasn't designed for this, on the contrary it was conceived as an IPC layer. b) I would need to constantly convert between C/C++ types and Qt types, write serialization/deserialization code, etc, which is a nightmare Actually Qt has a DBus implementation, but that's really moot. c) I would lose the automatic thread safety you get from Qt's AutoConnection (I know there's caveats, but for the most part it works great) Again, you could simply pump messages through the event loop. I don't see how using a signal-slot call is somehow better or different. This sounds horrible to me. I'm not seeing what I'm gaining by using "a real bus". You gain (some) decoupling of the implementation from the data interface. Or to phrase it another way: Why would unrelated components need to know what others implement, support, demand or represent. To give you an example, how does my radar control care about what data types are marshaled through and what interfaces are implemented by my data processing. Why would the radar component need to be recompiled (or possibly changed) to accommodate completely unrelated changes. Regarding my QObject bus being singleton...what is your justification for saying this? Just by merit of it coupling everything together. Everybody knows about it and it knows about everything. The AppMessageBus in my example holds no state as you can see, it just has signals. It doesn't hold its own state, it is a state for the whole application though. It basically does what QCoreApplication will have done - manage event dispatching. Btw, beside some initialization of unrelated (to this case) code, this is essentially the crux of the application object. Also, having the technical ability to use QCoreApplication doesn't mean I should do it. Of course, to reverse that argument though, having the technical ability to emit from outside a QObject doesn't necessarily mean that you should do it, right? Btw, if you look at my example, it's not a global variable, I give it as a constructor argument to the components that need it. So? That's simply an implementation detail. I create my singleton objects (whenever I need them) in main(), similarly to how QCoreApplication does it, but does that make them less global?
  • Slack Group

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    I have found all my jobs through this forum here, actually :-) Perhaps you don't need to search for other channels.