Skip to content

Brainstorm

Stuck? Some ideas just need to be dumped on someone before they can materialize.
440 Topics 3.2k Posts
  • 32 bit library to 64 bit library Qt

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    SGaistS

    Do you mean that the sources of SerialPort are part of your own project ?

  • 0 Votes
    9 Posts
    4k Views
    HashTagJFH

    Here's the solution I found myself...
    When using qt5.6.0 msvc2015_64 bit. You must also install visual studio 2015 to make it work... while installing visual 2015 make sure that C++ program is included in the installation in order fpr Qt to detect the compiler.

  • Save very important data to a file

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    mrjjM

    @AliReza-Beytari
    well for the file, the qt5-sqlcipher should do.

    For being hacker proof, its very important you dont store anything
    clearly in the exe file.

    That goes for the variables too.

    When u read into memory, make sure its not easy to locate
    and read. ( in mem)
    so do not store passwords or user names as clean text inside program.
    all must be encrypted.
    That will only keep noob hackers out.
    Anyone pro, will most likely be able to get access if
    unlimited access to app and data.

  • Simple module dependency analysis

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    K

    If you are thinking of symbols in terms of binaries (dlls), the right way of tracking dependencies is analysis of binaries. You need to get lists of public symbols from all libraries linked to your application, demangle them, and then you will be able to check which of them are used in each of your source files.

    If you wonder which tools to use for this task, I only know appropriate tools for ELF, not for Windows binaries

  • QT platform plugins

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS

    Again, from the documentation, they don't.

    Since that clears your doubts, please mark the thread as solved using the "Topic Tools" button so that other forum users may know an answer has been found :)

  • 0 Votes
    7 Posts
    3k Views
    SGaistS

    You're welcome !

    Since you have that part working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

  • Prevent Deleting a currently Opened file Using Qt.

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS

    One alternative that comes to mind is to work on a "copy" of the file and next time you save it you can tell your user that the file is gone.

  • 0 Votes
    4 Posts
    2k Views
    kshegunovK

    @the_

    The thing is when I do same with for example PDO in PHP it gives me a warning

    Qt's SQL driver should probably throw a warning at you as well, and if it doesn't it may be a minor bug. But in any case this doesn't elevate to an error, much less an SQL error, at least in my opinion. You could try searching in the bugtracker if something's reported about this.

    So for me it looks like that QSqlQuery only looks if the number of bound parameters is correct but does not care about their names.

    Without looking at the source of the SQL driver, I can't tell if that's the case, and you didn't mention what database you're using as well.

    Kind regards.

  • 0 Votes
    1 Posts
    547 Views
    No one has replied
  • Bringing the output of a webcam into Qt

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    Saran DeepakS

    @tekojo Thanks a lot bro. I think i got the right link :)

  • Browse and play a video

    Unsolved
    3
    0 Votes
    3 Posts
    997 Views
    Saran DeepakS

    @Bharathi Thanks a lot :)

  • GUI development for CAD.

    Unsolved
    6
    0 Votes
    6 Posts
    4k Views
    AwadheshA

    Actually, my idea is to have a storage of different wooden blocks in user interface and drag them one-by-one to working area to design a house model and then generate a txt file containing the stream of the coordinates (including some other attributes like color, shape) of building blocks.

  • Play H.264 Elementary Stream

    16
    0 Votes
    16 Posts
    20k Views
    SGaistS

    You'll likely have build your avframe with the data contained by the QByteArray

  • Feedback for ORM in development

    4
    0 Votes
    4 Posts
    1k Views
    kshegunovK

    @Edin-M

    but there would still need to be DB_TABLE macro, just without arguments.

    Why, what exactly is that macro supposed to do?

    As for column names, acctually I use properties, so columns are same as property name so DB_COLUMN(QString, name) creates set_name() and get_name() methods

    Look up Q_PROPERTY.

    One thing I'm unable is to retrieve list of all QObjects in a system

    And why should you? There's no central repository for objects ...
    Besides QObjects are not for that, they can't be copied, you should just use regular objects. And my point was that you don't need to have any macros besides Q_GADGET (which will allow to query for the class name with some tweaking) and Q_PROPERTY (which will give you dynamic properties). The relations can be retrieved from the db.

  • 0 Votes
    1 Posts
    669 Views
    No one has replied
  • Qt Forum Mail Subscribtion

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    Do you mean something like the RSS feed ?

  • Writing secure data to a protected file

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    the_T

    @Maxim-DC

    but what if that data isn't that stupid like "txtdata" but something more like progress in a game, how to save this?

    Another approach for this could be QSettings with a custom format. You could set a reader and a writer function that writes encrypted data into a file.

    QSettings::Format newformat = QSettings::registerFormat("cnf",read,write); settings = new QSettings("cnf/u.cnf",newformat); bool read(QIODevice &dev,QSettings::SettingsMap &map) { //your code goes here return true; } bool write(QIODevice &dev,const QSettings::SettingsMap &map) { //your code goes here return true; }

    For not so strong encryption you could use Simple Crypt in your read and write functions

  • 0 Votes
    2 Posts
    968 Views
    hskoglundH

    Hi, while I think you're correct about QComboBox, for QListView I think you can apply individual stylesheets to it. If you can use a QListWidget instead I have an example:

    for (int i = 0; (i < 10); ++i) ui->listWidget->addItem(new QListWidgetItem("")); QLabel* l1 = new QLabel("Item1",this); l1->setStyleSheet("* { color: #FF0000; }"); ui->listWidget->setItemWidget(ui->listWidget->item(0),l1); QLabel* l2 = new QLabel("Item2",this); l2->setStyleSheet("* { color: #00FF00; }"); ui->listWidget->setItemWidget(ui->listWidget->item(1),l2);
  • QImage linux integration is lacking

    3
    0 Votes
    3 Posts
    2k Views
    JKSHJ

    Hi @I-d-na,

    To clarify @SGaist's point:

    QImage is not an image format. It is a C++ class that lets C++ programmers manipulate images. A QImage cannot be downloaded over the internet. A QImage can only exist in a program that's written with Qt. File names like "main-qimg-salad" are not related to QImage. (Yes, I know the both start with a 'Q' and end with "image/"img", but really: they are not related at all.)

    Now that we've cleared that up, let's get to the root of your problem. If you download a file and it's called "main-qimg-salad", it simply means that the server gave it a filename that starts with "main-qimg", but the server neglected to include the .filetype extension at the end. Therefore, we can't tell what type of image it is. See https://www.quora.com/Why-do-we-get-main-qimg-e7b0b4951d663c737e5bbf2722d23612-jpg-types-of-saving-titles-when-we-download-images-from-the-Internet for a discussion of this naming system.

    If you search https://www.google.com/search?q="main-qimg" you will find that most of these images are actually JPEG files. So, try renaming your file from "main-qimg-salad" to "main-qimg-salad.jpg" and see what happens.

  • 0 Votes
    1 Posts
    859 Views
    No one has replied