Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • How translate widgets from external library with own Qt application

    Solved
    4
    0 Votes
    4 Posts
    393 Views
    Christian EhrlicherC
    At least it's much easier to have two.
  • Alignment of layout doesn't work

    Unsolved
    2
    0 Votes
    2 Posts
    275 Views
    SGaistS
    Hi and welcome to devnet, What version of Qt ? On what OS ? What is MainWindow ? Please provide a complete minimal compilable example that reproduce the behaviour so that people can test. On a side note, QGridLayout *gLayout = new QGridLayout(this); already applies the layout on the widget represented by this therefore this->setLayout(gLayout); is redundant. If MainWindow is a QMainWindow, then you can't apply a layout on it because it already has one that provides all the bells and whistles of that class.
  • Installing Qtcreator on xubuntu

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    sierdzioS
    Are you building for Yocto (embedded Linux) targets? If no, then don't use instructions on how to set up for Yocto development. It won't help you get local dev env for Qt development.
  • How to install a valid qmake.exe for MinGW?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    aha_1980A
    Hi @PRSurface, it seems you did not select a Qt version in the installer. If you want to use MinGW, you should select a Qt MinGW version with the same bitness as the compiler. This should set up everything correctly. Regards
  • ¿How can I move a qLabel with drag and drop?

    Solved
    2
    0 Votes
    2 Posts
    342 Views
    jsulmJ
    @Isidro-Perla Take a look at this example: https://doc.qt.io/qt-5/qtwidgets-draganddrop-draggableicons-example.html
  • 0 Votes
    1 Posts
    469 Views
    No one has replied
  • Question about models with aggregated values (intertwined updates)

    Unsolved
    6
    0 Votes
    6 Posts
    401 Views
    SGaistS
    Just for the sake of building the idea: List Node would only be a list showing something from your data class or should it already a tree ? Do you have a data structure for these external data to be stored ? The basics of your data method looks good.
  • Modbus TCP/IP

    Unsolved
    2
    0 Votes
    2 Posts
    245 Views
    SGaistS
    Hi, You're question is not really clear, to which of your two applications do you want to add something ?
  • Changing the QProgressBar Color in Windows

    Solved
    3
    0 Votes
    3 Posts
    846 Views
    H
    Dear mrjj thank you for your help which gave me some ideas, finally I've found this here: https://forum.qt.io/topic/53447/solved-changing-progress-indicator-in-qprogressbar which helped me to get a better than excepted result
  • windeployqt does not collect the dll

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    mrjjM
    @Mikeeeeee said in windeployqt does not collect the dll: The documentation does not say what path-to-app-qmlfiles is. Well it could not as its where you place them. Often in the project folder with the other files of the project.
  • Slow client receiver with MBs of data sent

    Solved
    10
    0 Votes
    10 Posts
    653 Views
    CKurduC
    @enne9 You are welcome.
  • How to leave a trail behind a moving shape

    Unsolved
    2
    0 Votes
    2 Posts
    246 Views
    O
    @marcmarc Create a filo queue and add the triangles. Draw then while moving and clear the queue when movement stops.
  • QListWidget::addItems() Data type question

    Solved
    33
    0 Votes
    33 Posts
    6k Views
    Christian EhrlicherC
    @Binary91-0 said in QListWidget::addItems() Data type question: In the function call, it doesn't work. You don't do this in the function call (as I already said) - you do const TreeItem *myItem = this; TreeItem *myNonConstItem = myItem; And, as I already told you, is not allowed since this would kill the whole idea of const.
  • Can't reset QFlag in simple class

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    Please_Help_me_DP
    @mrjj thank you Video helped me to remember what XOR. Also now it I understand how to easilly transform binary data representation to decimals :)
  • Metal for new, OpenGL for old macOS X versions?

    Unsolved
    2
    0 Votes
    2 Posts
    289 Views
    SGaistS
    Hi and welcome to devnet, That's the kind of question your should bring to the interest mailing list. Note however that beside the Metal VS OpenGL issue at hand, AFAIK, the current policy is to follow Apple support plan which means the three last version of macOS. Therefore, depending on what version of macOS you'd like to support, you will have to use an older version of Qt or rebuild it yourself with the "oldest enough" macOS version that still works.
  • SMTP Library for QT5

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    H
    The programmer of simple-mail provided a fix, now it compiles fine. The only thing a had to do additionally was to install openSSL
  • How QMenu text align center and adjust size ?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    mrjjM
    Hi Are you talking about [image: HZMTcP.png] Anyway, QMenu dont have many options for how it draws so you must use a proxy style to change it. https://stackoverflow.com/questions/59218378/qmenu-right-align-text and for the size, i think you need to subclass QMenu and change sizeHint()
  • How to create Container for multiple QWidget?

    Unsolved
    6
    0 Votes
    6 Posts
    801 Views
    mrjjM
    @npatil15 well QDataWidgetMapper must be able to map the QVariant to the widget so it only works with Widgets it understands. If we really want the widgets to also do data processing behind the scene and not just editing then you need to give it access to the model directly if QDataWidgetMapper editing is not enough.
  • Restore widget default palette color

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    JonBJ
    Even better, QPalette QApplication::palette(const QWidget *widget), https://doc.qt.io/qt-5/qapplication.html#palette If a widget is passed, the default palette for the widget's class is returned. This may or may not be the application palette.
  • 0 Votes
    15 Posts
    3k Views
    M
    I can solve the problem. First, I created folder sqldrivers including libqsqlite.so in the app directory (e.x. /data/user/0/com.example.polarislib) and I set permission by chmod 777 to sqldrivers folder and libqsqlite.so file and finally I used the following code in my source where the connection to Sqlite is needed: QCoreApplication::addLibraryPath("/data/user/0/com.example.polarislib");